Calculate elapsed time or add and subtract hours, minutes and seconds, including midnight changes.
If the end time is earlier, it is treated as the following day.