Calculate the duration between two times on the same day.
If the end time is earlier than the start time, this assumes it rolls over to the next day.
duration = end time − start time (wraps past midnight)