Operations

Time Duration Calculator

Time between two date-times, or a total of several durations in hours and minutes and in decimal hours for billing.

FreeNo sign-upRuns in your browserReviewed 2026-10-07

Your numbers

What do you want to work out?

Saved on this device

Result

Updates as you type

Pick a start and end date and time.

What this calculates

Two common questions in one tool: how much time passes between two moments, and what is the total of a list of durations. The first answers in days, hours, minutes and seconds. The second adds up entries like 1:30 and 2:45, and gives the total in hours and minutes and as decimal hours ready for an invoice.

Subtract an entry, such as a break, by starting its line with a minus sign.

The formula

Duration = (end date − start date) × 86,400 s + (end clock time − start clock time)
Total of durations = sum of signed entries (H:MM or H:MM:SS)
Decimal hours = total seconds ÷ 3,600 (so 1:30 = 1.5 and 0:20 = 0.33)
Date-times
A calendar date and a 24-hour clock time, in local wall-clock time.
Entries
One duration per line, as hours:minutes. Minutes and seconds must be 0 to 59.

Assumptions

  • Both times are local wall-clock times in one timezone. The tool does not know your timezone.
  • If a daylight-saving change falls between the two times, the real elapsed time differs from the wall-clock difference by the clock shift, usually one hour.
  • The end must not be earlier than the start. For an overnight span, set the end date to the next day.

Worked example

Two things to calculate: a shift from 09:00 to 17:30 on the same day, and a day's tasks of 1:30, 2:45 and 0:50.

  1. 01Shift = 17:30 − 09:00 = 8 hours 30 minutes = 8.5 hours
  2. 02Tasks = 1:30 + 2:45 + 0:50 = 5:05
  3. 03Decimal hours = 5 + 5 ÷ 60 = 5.08

The shift is 8.5 hours, and the tasks total 5:05, or 5.08 decimal hours for billing.

How to read the result

Decimal hours are for billing and spreadsheets. 5:05 is 5.0833 hours, shown as 5.08 to two places. Round the way your client agreement says, and be consistent across invoices.

For a quick sanity check, minutes divided by 60 gives the decimal: 15 minutes is 0.25, 30 is 0.5, 45 is 0.75.

Common mistakes

  • Reading 1:75 as an hour and 75 minutes. Minutes only go to 59, so write 2:15.
  • Treating 1.30 as 1 hour 30 minutes. In decimal hours 1.30 is 1 hour 18 minutes.
  • Entering an end time earlier than the start on the same date. Set the end date to the next day for overnight spans.
  • Forgetting that a daylight-saving change can make a night shift an hour longer or shorter than the clock suggests.

Frequently asked questions

How do I convert hours and minutes to decimal hours?
Divide the minutes by 60 and add them to the hours. 4 hours 45 minutes is 4 + 45 ÷ 60 = 4.75. This tool does it for you in the add-up mode.
Does it handle daylight saving time?
It treats the times as plain local clock times. If a clock change happens between the start and end, the real time elapsed is an hour more or less than the result. For exact elapsed time across a change, convert both times to UTC first.
Can I calculate across several days?
Yes. Set different start and end dates. The result shows days, hours and minutes and the total hours in decimals.
How do I subtract a break?
In the add-up mode, enter the break on its own line with a minus sign, for example -0:30.
Can I include seconds?
Yes. Time inputs accept seconds if you type them, and add-up lines accept H:MM:SS.

Keep going