private double duration(String arrival,String departure,int wage) throws ParseException{
		SimpleDateFormat fommater = new SimpleDateFormat("HH:mm:ss");
		Date arriDate = fommater.parse(arrival);
		Date deparDate = fommater.parse(departure);
		Date normalArrivDate = fommater.parse("06:00:00");
		Date normalDeparDate = fommater.parse("18:00:00");
		Date theEndOfDay = fommater.parse("23:59:59");
		long bewteen;
		double money = 0;
		if(arriDate.before(normalArrivDate)){
			if(deparDate.before(normalArrivDate)){
				bewteen = deparDate.getTime() - arriDate.getTime();
				return caculateMoney(bewteen, 1.5*(double)wage);
			}
			else{
				bewteen = normalArrivDate.getTime() - arriDate.getTime();
				money += caculateMoney(bewteen, 1.5*(double)wage);
				arriDate = normalArrivDate;
			}
		}
		if((arriDate.after(normalArrivDate)|| arriDate.equals(normalArrivDate)) && arriDate.before(normalDeparDate)){
			if(deparDate.before(normalDeparDate)){
				money += caculateMoney(deparDate.getTime()-arriDate.getTime(), wage);
				return money;
			}
			else{
				money += caculateMoney(normalDeparDate.getTime()-arriDate.getTime(), wage);
				arriDate = normalDeparDate;
			}
		}
		if(arriDate.after(normalDeparDate) || arriDate.equals(normalDeparDate)){
			money += caculateMoney(deparDate.getTime() - arriDate.getTime(), 1.5*(double)wage);
		}
		return money;
		
		
		
	}