Finds the gap between two times. If the end time is earlier than the start, it is taken as the next day, so overnight spans work too.