⏱️ Time Duration Calculator — Calculate Elapsed Time

Calculate exact time between two dates & times — with breaks & decimal hours

✓ Decimal Hours ✓ Break Deduction ✓ Multi-Day Support ✓ Business Days Mode
Start
End
💡 Works across midnight and across multiple days automatically. If end time is earlier than start time on the same date, it’s assumed to be the next day — unless you set a different end date.
Total Duration
Full Breakdown
Start
End
Total duration
Decimal hours
Total minutes
Total seconds
Spans midnight / multiple days
Shift Start & End
Breaks to Deduct
Break Start Break End
💡 Common use: 9:00 AM – 5:00 PM shift with a 30-minute lunch break gives 7.5 net hours instead of 8.
Net Duration (After Breaks)
Breakdown
Shift start → end
Gross duration
Total break time deducted
Net duration
Net decimal hours
Minutes to Decimal Hours (for Payroll)
MinutesDecimalMinutesDecimal
5 min0.0835 min0.58
10 min0.1740 min0.67
15 min0.2545 min0.75
20 min0.3350 min0.83
25 min0.4255 min0.92
30 min0.5060 min1.00
💡 Formula: Decimal hours = Hours + (Minutes ÷ 60). Example: 7 hours 15 minutes = 7 + (15÷60) = 7.25 decimal hours. Used for payroll, billing, and timesheets where partial hours need a single number instead of HH:MM format.
Time Duration Calculator · calculatorzhub.com
Free · No signup required

The time duration calculator above finds the exact elapsed time between two dates and times — in days, hours, minutes, and seconds, plus decimal hours for payroll. It handles midnight crossover and multi-day spans automatically, and includes a dedicated mode for deducting lunch and rest breaks from a work shift. People also search for this as a "time difference calculator" when comparing two clock times within the same time zone — the calculation is identical.

Use a time duration calculator instead of subtracting manually — the math doesn't follow base-10 rules once minutes need to "borrow" across the hour boundary.

Time Duration Calculator: How the Math Works

Calculating duration between two times means subtracting start from end. The complication: time runs in base-60 — 60 minutes per hour, 60 seconds per minute, not 100.

This borrowing step works like regular subtraction — except you borrow groups of 60, not 10. The time duration calculator above handles this automatically, along with edge cases like a shift crossing midnight.

When the Time Span Crosses Midnight

A night shift starting at 10:00 PM and ending at 6:00 AM doesn't fit simple subtraction — the end time is numerically smaller. The calculator detects this automatically: if end time is earlier than start time on the same date, it assumes the next day, giving 8 hours instead of a negative number.

Decimal Hours for Payroll and Billing

Clock time and decimal hours serve different purposes. Hours and minutes are easy to read — "seven hours and fifteen minutes." Decimal hours are what payroll and billing software need, since hourly rates multiply cleanly against decimals but not minutes.

The calculator converts to decimal hours automatically in every mode, so this conversion never has to be done by hand.

Calculating Time Duration with Break Deductions

Gross shift time and net work time are not the same thing. A shift from 9:00 AM to 5:00 PM looks like 8 hours, but if there's a 30-minute lunch break, the actual net work time — and what most employers pay for — is 7.5 hours.

ComponentTimeDecimal
Gross shift (9:00 AM – 5:00 PM)8 hours 0 min8.00
Lunch break deducted0 hours 30 min0.50
Net work time7 hours 30 min7.50

For shifts with multiple breaks — morning, lunch, and afternoon, for example — each needs to be entered and subtracted individually for the net duration to be correct. The break-deduction mode of this time duration calculator supports adding as many break periods as needed.

Multi-Day Duration and Calendar Math

Multi-day duration calculations need to account for varying month lengths and leap years. A span from January 28 to March 3 crosses February, whose length depends on whether the year is a leap year — getting this wrong compounds into every downstream number.

Calculate the Time Between Two Times or Two Dates

"Time between two times" and "time between two dates" describe the same calculation at different scales — finding hours uses the same subtraction as finding days, just without the calendar-day layer.

  • Hours between two times (same day): subtract clock times using the borrowing method above.
  • Days and hours between two dates (multi-day): subtract dates first for whole days, then times for the remainder.
  • Minutes or seconds between two times: same subtraction, smaller units — useful for comparing stopwatch splits.

"Duration," "time between," and "time difference" all return the identical result for two clock times in one location.

Frequently Asked Questions

How do I calculate the duration between two times?

Convert both times to 24-hour format, then subtract the start time from the end time. If the end time's minutes are smaller than the start time's minutes, borrow 60 minutes from the hours column before subtracting. For times spanning multiple days, also subtract the dates to get the day count, then add the time difference. The time duration calculator above automates all of this in one click.

How do I convert minutes to decimal hours?

Divide the minutes by 60. For example, 45 minutes ÷ 60 = 0.75 decimal hours. Add this to the whole hour count: 3 hours 45 minutes becomes 3.75 decimal hours. This format is standard for payroll software, time-and-materials billing, and any system that multiplies time by an hourly rate.

What's the difference between calendar days and business days?

Calendar days count every day in a range, including weekends and holidays. Business days count only Monday through Friday. A two-week vacation might span 14 calendar days but only 10 business days — this time duration calculator uses calendar days by default for elapsed time.

How do I deduct a lunch break from total work hours?

Calculate the gross duration from clock-in to clock-out first, then subtract each break separately. For multiple breaks — a 15-minute morning break and a 30-minute lunch, for instance — each is calculated individually and subtracted from the gross total to get net work time.

Why would my time duration result show as negative?

A negative result means the end date and time is earlier than the start — usually a data-entry mistake, like swapping the start and end fields. Double-check the end date in the time duration calculator when a shift crosses midnight.

How do I calculate an end time from a start time and a duration?

This reverses a duration calculation: add the duration to the start time instead of subtracting two times. A task starting at 2:15 PM that takes 3 hours 40 minutes ends at 5:55 PM. This tool finds duration between two known points; adding a duration to one start time is a separate calculation.

How do I calculate time duration in Excel or Google Sheets?

Subtract the start cell from the end cell (=B2-A2), then format the result as time (h:mm) or as a number for decimal hours. If duration might cross midnight, wrap it in MOD: =MOD(B2-A2,1). The math matches this calculator — spreadsheets just need correct cell formatting.

Is a "time difference calculator" the same as a time duration calculator?

For two clock times in the same time zone, yes — both terms describe the identical calculation. A time difference between two time zones (scheduling a call between New York and Tokyo, for example) needs a dedicated time zone converter that accounts for UTC offsets and Daylight Saving Time instead.

Conclusion

The time duration calculator removes the manual borrowing-and-carrying math that makes time subtraction error-prone — handling midnight crossover, multi-day spans, leap years, and break deductions automatically. Whether the result needs to be in hours and minutes for a timesheet or decimal hours for payroll, both formats are available instantly.