public int avgMinutes(String[] times) {
		int sums = 0;
		for(int i = 0;i < times.length;i++){
			int minutes = 0;
			int hour = Integer.parseInt(times[i].substring(0, 2));
			int minute = Integer.parseInt(times[i].substring(3, 5));
			int day = Integer.parseInt(times[i].substring(14));
			if(times[i].substring(6, 7).equals("A")){
				if(hour==12)
					hour=0;
				minutes = (day-1)*24*60+hour*60+minute-480;
			}
			else {
				if(hour == 12)
					hour=0;
				minutes = (day-1)*24*60+(hour+12)*60+minute-480;
			}
			sums += minutes;
		}
		return (int)Math.round((double)sums/times.length);
	}