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
Select Start Time
Pick clock start time.
Select End Time
Pick completion or end time.
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
22:00 to 06:00
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
09:15 to 17:45
8h 30m · 510 minutes · 8.50 decimal hours
510 minutes ÷ 60 = 8.50 hours.
Key Features & Accuracy
Correctly computes durations crossing midnight (e.g. 10:00 PM to 6:00 AM).
Instantly converts 8h 30m to 8.50 hours for payroll software.
Limitations & important notes
Frequently Asked Questions
Related Tools
Date & TimeDate Difference Calculator
Calculate the exact duration between two dates in total days, full weeks, months, years, and working business days.
Business Days Calculator
Calculate working business days and total working hours between two dates, excluding weekends and custom holidays.
Time Zone Converter
Convert and compare times across major world time zones with 24-hour timeline scrubbing and business hours badges.
TaskKit never records, stores, or transmits the contents of your tool workspaces. Your data stays securely on your machine.

