Processed entirely in your browser. Your input is not uploaded.

Time Duration Calculator

Calculate exact elapsed hours, minutes, and decimal payroll hours between two times, including overnight spans.

Last updated October 5, 2026

Loading tool workspace…

Overview

Finds the elapsed time between two clock times, shown as hours and minutes, total minutes, and decimal hours for payroll. It handles shifts that cross midnight.

Use it for timesheets, work hours, and measuring the duration between a start and end time.

How it works

Both times are converted to seconds since midnight and subtracted. If the end time is earlier than the start, the span is treated as crossing midnight and 24 hours are added. Decimal hours are the total seconds ÷ 3600, so 8h 30m becomes 8.50.

How to use the Time Duration Calculator

1

Select Start Time

Pick clock start time.

2

Select End Time

Pick completion or end time.

3

Read Duration

See total hours and minutes plus decimal hours for payroll.

When to use it

  • Adding up a work shift for a timesheet.
  • Measuring an overnight shift that crosses midnight.
  • Converting hours and minutes into decimal hours for payroll software.

Examples

Overnight shift

Input
22:00 to 06:00
Output
8h 0m · 480 minutes · 8.00 decimal hours

The end time is earlier, so it crosses midnight: 6 hours to midnight plus 6 after.

Payroll conversion

Input
09:15 to 17:45
Output
8h 30m · 510 minutes · 8.50 decimal hours

510 minutes ÷ 60 = 8.50 hours.

Key Features & Accuracy

Overnight Shift Support

Correctly computes durations crossing midnight (e.g. 10:00 PM to 6:00 AM).

Decimal Payroll Hours

Instantly converts 8h 30m to 8.50 hours for payroll software.

Limitations & important notes

It measures a single span between two times of day with no date, so a duration of exactly 24 hours can't be told apart from 0.
Breaks aren't subtracted automatically — enter the working periods you want to measure.

Frequently Asked Questions

When the end time is earlier than the start time on the clock, a 24-hour cycle is added to compute the elapsed duration across midnight.