Time Duration Calculator
Calculate the duration between two times of day — handles midnight crossings automatically.
Calculate the time between two times of day
Enter a start time and an end time using the pickers and the duration updates instantly. If the end time is earlier than the start time the calculator assumes the interval crosses midnight — useful for overnight shifts, flights, or any task that spans the midnight boundary. The result is shown as a plain "X h Y min" string alongside the individual hour and minute components.
The calculation is purely client-side arithmetic on two HH:MM values. No date is involved, so the tool gives the same answer regardless of daylight saving rules or your time zone.
FAQ
How does midnight crossing work? When the end time is less than or equal to the start time the calculator adds 24 hours to the end, giving the correct duration for spans like 22:00 to 06:00 (8 hours).
Can I calculate durations longer than 24 hours? No — the inputs are times of day (HH:MM), not absolute datetimes, so the maximum result is 23 h 59 min. For multi-day spans add 24 h for each extra day manually.