ebstore pro
Free · No sign-up · Decimal hours included

Time Duration Calculator

Exactly How Long Between Two Times

Shift lengths, flight durations, project hours: the exact span in hours, minutes and seconds — and in decimal hours, the format your timesheet actually wants.

Duration between two times

01:00:00

1

Total hours (decimal)

60

Total minutes

3,600

Total seconds

0.042

Total days (decimal)

Decimal hours are what payroll and timesheets need: 1h 30m = 1.5 hours, not 1.3.

Add or subtract time

Thu, November 19, 2026 at 6:15 AM

Done-for-you

Want a tool like this on your own website?

WebStore Pro builds fast Full Stack websites and custom calculators that rank — designed, built and SEO-ready from day one.

Prefer email? neilsonsmarry@gmail.com · Or browse our services , days between dates calculator and free tools.

How it works

One subtraction, every unit you need

The whole calculation is a single difference in seconds — everything on the page is that number, re-expressed.

The calculator turns both date-times into timestamps, subtracts them, and works with the difference in whole seconds. That total is split from the top down: full days of 86,400 seconds, then hours of 3,600 seconds, minutes of 60, and the leftover seconds. The same total drives every other figure shown — decimal hours are total seconds ÷ 3,600, total minutes are total seconds ÷ 60, and decimal days are total seconds ÷ 86,400. The second tool is simpler still: it converts your hours and minutes into a single minute count and adds or subtracts that many minutes from the starting timestamp.

Worked example: the overnight shift, 22:15 to 06:45

From 22:15 to midnight is 1 hour 45 minutes, and from midnight to 06:45 is 6 hours 45 minutes — together, 8 hours 30 minutes. In this calculator's units that is 510 total minutes, 30,600 total seconds and 8.5 decimal hours. Take off a 30-minute unpaid break in decimal — 8.5 − 0.5 — and paid time is exactly 8.0 hours. The add tool agrees from the other direction: 22:15 plus 8 hours 30 minutes lands on 06:45 the next morning.

Three mistakes that corrupt a timesheet

  • Writing 8.30 for 8 hours 30 minutes. Decimal 8.30 means 8 hours 18 minutes — thirty minutes is 0.5 of an hour, not 0.30.
  • Leaving the end on the same date for overnight work. The calculator then counts backwards and warns you; set the end date to the following day.
  • Forgetting daylight saving. On the two changeover nights each year, real elapsed time differs from the clock-face gap by an hour — and this calculator measures the real elapsed time.

FAQ

Time duration questions, answered

How do I calculate the duration between two times?+

Subtract the start time from the end time. From 09:15 to 17:45 is 8 hours 30 minutes. When the period crosses midnight or spans days, date-plus-time inputs (as used here) keep it exact — this calculator accepts full dates with times for both ends.

What are decimal hours, and how do I convert minutes to them?+

Decimal hours express a duration as a single number: divide the minutes by 60. So 30 minutes = 0.5 hours, 15 minutes = 0.25, 45 minutes = 0.75, and 1h 30m = 1.5 hours — not 1.3. Payroll, billing and timesheet systems use decimal hours because pay is rate × hours.

How do I calculate hours worked for a shift?+

Enter clock-in as the start and clock-out as the end, then subtract any unpaid break from the decimal-hours result. Example: 08:00 to 16:30 is 8.5 hours; minus a 30-minute unpaid lunch gives 8.0 paid hours. Overnight shifts work the same way as long as the end date is the next day.

How many minutes are in an hour, and seconds in a day?+

60 minutes in an hour, 3,600 seconds in an hour, and 86,400 seconds in a full day. The totals row of this calculator shows your duration in all of these units at once.

What time will it be in X hours?+

Use the second tool on this page: enter the starting date and time, the hours and minutes to add, and read the result — it handles crossing midnight and month boundaries automatically. Subtracting works the same way for 'what time was it X hours ago'.

Is the Time Duration Calculator free?+

Yes, completely free with no sign-up. Times are processed in your browser and never stored.

How do I work out a shift that crosses midnight?+

Give the end its real date — the next day — rather than a time earlier than the start. A shift from 22:15 on Friday to 06:45 on Saturday is 8 hours 30 minutes. If you enter both times on the same date, the end falls before the start and this calculator counts the duration backwards and flags it.

How are decimal hours rounded on a timesheet?+

This calculator shows decimal hours to two decimal places, so 20 minutes appears as 0.33 hours and 40 minutes as 0.67. Many employers round to the nearest quarter hour instead — 0.25, 0.5, 0.75 — so check which convention your payroll uses before copying a figure across, and apply it consistently to every shift.