Time Duration Calculator

Calculate the duration between two times, including overnight shifts.

Your files never leave your device. No upload. No sign-up.

Total worked time

8h·0min

Decimal hours: 8.00

About the Time Duration Calculator

Find the exact duration between two clock times — perfect for timesheets, work shifts, billable hours, and event planning. Handles shifts that cross midnight automatically, and lets you subtract an unpaid break in minutes. Results are shown in hours and minutes and in decimal hours for payroll.

How to use the Time Duration Calculator

  1. 1Enter your start time (24-hour or browser-native time picker).
  2. 2Enter your end time. If it's earlier than the start, we'll treat it as the next day.
  3. 3Optionally enter unpaid break minutes to subtract.
  4. 4Read the total duration in hours + minutes and as decimal hours.

Why use our Time Duration Calculator

  • Overnight aware

    End time earlier than start? We roll over to the next day automatically.

  • Break support

    Subtract any unpaid break in minutes for a true worked-time total.

  • Decimal hours

    Get the payroll-ready decimal hours value (e.g. 7.5 instead of 7h 30m).

  • Private

    Times stay in your browser; nothing is uploaded.

Frequently asked questions

How do you handle shifts that cross midnight?+

If the end time is earlier in the day than the start time, we assume the shift continues into the next day and add 24 hours to the end time before subtracting.

How is the decimal hours value calculated?+

Decimal hours = total minutes ÷ 60. So 7 hours 30 minutes becomes 7.5, and 7 hours 45 minutes becomes 7.75. This is the format most payroll systems expect.

Can I enter breaks longer than my shift?+

If your break exceeds the shift length, the worked total is shown as 0. Double-check your start, end, and break values if that's not what you expected.

Is anything stored or sent online?+

No. The tool runs entirely in your browser and never transmits your data.