Dates & workdays
Time Duration Calculator: Time Between Two Dates or Two Times
Calculate duration between two timestamps. Same-day (two times) or multi-day (two dates). Decimal days and hours for payroll. Handles overnight spans and reversed dates.
By Jeff Beem
Updated
Mode
8 Hours, 30 Minutes
Days (dec): 0.35417
Hours (dec): 8.50000
Minutes: 510
Seconds: 30,600
Notes
Duration formula
End minus start. Same-day mode: if end clock is before start, we add 24h to end (overnight span).
Duration Between Two Points in Time
Duration is the span between two moments. Same-day intervals use two times (AM/PM); multi-day spans use two full timestamps. The result shows days, hours, minutes, seconds plus decimal forms for payroll and project tracking.
How It Works
Multi-Day Span
Now Button
Decimal Output
Reversed Dates
Point-to-Point
Time Duration Calculator: Time Between Two Dates or Two Times
Calculate the exact duration between two timestamps. Same-day (two times) or multi-day (two dates). Decimal days and hours for payroll. Reversed dates handled automatically. Free, runs locally.
What This Calculator Does
- Same-day mode:Enter start and end times with hour, minute, second, and AM/PM selectors.
- Multi-day mode:Use datetime pickers for start and end dates and times across any number of days.
How the Math Works
- Worked example:9:15 AM to 5:45 PM → difference = 8h 30m = 30,600 seconds. Decimal hours = 30,600 ÷ 3,600 = 8.50. Decimal days = 30,600 ÷ 86,400 ≈ 0.354.
- Overnight example:11:00 PM to 7:00 AM. End is before start, so add 24h: effectively 31:00 − 23:00 = 8 hours.
How to Use This Calculator
How the Time Duration Calculator Works
Same-Day vs. Multi-Day Mode
- Between Two Times:For intervals on one day (e.g., 9 AM to 5 PM). Enter Start and End with AM/PM. If End is before Start, the tool assumes an overnight span and adds 24 hours to End, 11 PM to 7 AM gives 8 hours.
- Between Two Dates:For spans across days or weeks. Use the datetime pickers. If Start is after End, you still get the correct span; the calculator notes the reversal.
Decimal Hours for Payroll and Billing
Time Duration Calculator FAQ
How do I calculate the time between two times on the same day?
How do I find the duration between two dates?
What does the Now button do?
Why does 11 PM to 7 AM show 8 hours?
What gets copied when I click Copy Result?
Time & Date Reference Note
Informational Use: These tools use standard date/time algorithms and your browser’s timezone data (IANA). Results are intended for general reference and planning only.
Verification Recommended: Time zone rules and daylight saving changes vary by region and year. For critical scheduling, payroll, or legal deadlines, confirm results with official sources.
Local Verification: Always confirm times, dates, and business-day counts with official sources or qualified professionals when stakes are high.