Smart Unit ConvertersSmart Unit Converters

Time Duration Calculator

Calculate the duration between two times in hours and minutes.

?What is the Time Duration Calculator?

A time duration calculator finds the elapsed time between two clock times (for example, 9:00 AM to 5:30 PM). It handles overnight crossings automatically — if the end time is numerically earlier than the start, the tool assumes the duration spans midnight and adds 24 hours accordingly. Results are shown in hours-and-minutes format, total minutes, and decimal hours (which is how payroll systems, billing software, and time-tracking apps typically want the data). Indispensable for timesheets, parking tickets, work-shift tracking, and freelance time billing.

The Formula

Duration = End Time − Start Time. If End < Start, add 24 hours to treat as an overnight crossing.

Both times are converted to 'total minutes past midnight' for clean arithmetic. If the numerical end time is earlier than the start (for example, 22:00 start and 06:00 end), the calculator adds 24 × 60 = 1,440 minutes to treat the duration as crossing midnight — essential for correct night-shift and overnight-stay calculations. The final duration is then split back into hours and minutes for display, along with the decimal-hours equivalent used in payroll.

Practical Examples

1

A 9:00 AM to 5:30 PM workday equals 8 hours and 30 minutes, or 510 minutes, or 8.5 decimal hours — the format payroll systems expect.

2

A 10 PM to 6 AM night shift equals 8 hours with automatic overnight crossing — no manual math required.

3

A 2:15 PM to 2:45 PM short meeting duration of exactly 30 minutes is confirmed instantly.

4

A long day from 6:00 AM to 11:45 PM totals 17 hours 45 minutes (17.75 decimal hours) — useful for travel day logs.

5

Parking from 9:45 AM to 3:10 PM is 5 hours 25 minutes — perfect for verifying parking attendant charges.

6

Freelance work from 10:30 AM to 1:15 PM plus 2:00 PM to 6:45 PM totals 7 hours 30 minutes of billable time across two sessions.

Frequently Asked Questions

The calculator assumes the duration crosses midnight and automatically adds 24 hours. This makes it perfect for overnight shifts (hospital nurses, factory workers, security guards) where a 10 PM to 6 AM shift is correctly computed as 8 hours rather than an absurd negative number.