@SuppressWarnings("deprecation")
	private String calculateFrequency(String date) throws Fly5Exception {
		String[] dateArray = date.split("-"); 
		Date departureDate = new Date(Integer.parseInt(dateArray[0]),Integer.parseInt(dateArray[1]), Integer.parseInt(dateArray[2]));
		int day = departureDate.getDay();
		switch (day)
		{
		case 0: return Fly5Constants.SUNDAY;
		case 1: return Fly5Constants.MONDAY;
		case 2: return Fly5Constants.TUESDAY;
		case 3: return Fly5Constants.WEDNESDAY;
		case 4: return Fly5Constants.THIRSDAY;
		case 5: return Fly5Constants.FRIDAY;
		case 6: return Fly5Constants.SUNDAY;
				
		}
		throw new Fly5Exception(new FaultBean(EXC111));
	}