Find the duration between two times of day, including overnight spans.
If the end time is earlier than the start time, we assume it rolls over to the next day and add 24 hours before computing the difference.