def time_diff(end, start):
    """Take two times formatted HHMM and return end-start, in hours."""
    end = 60 * int(end[:2]) + int(end[2:])
    start = 60 * int(start[:2]) + int(start[2:])
    return float(end-start) / 60