Time Duration

Calculate elapsed hours and minutes, including overnight.

Example result

Elapsed time: 8h 0m

Step by step

  1. Convert both times to minutes after midnight.
  2. Wrap an earlier end time to the following day, then subtract the break.