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.
Result
Updates as you typePick 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
- 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.
- 01Shift = 17:30 − 09:00 = 8 hours 30 minutes = 8.5 hours
- 02Tasks = 1:30 + 2:45 + 0:50 = 5:05
- 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?
Does it handle daylight saving time?
Can I calculate across several days?
How do I subtract a break?
Can I include seconds?
Keep going
Related tools
- Timesheet GeneratorLog hours by date and task, total them in decimal hours, and turn the billable time into an invoice in one click.
- Work Hours CalculatorAdd up hours worked from clock-in and clock-out times with unpaid breaks. Daily and weekly totals in hours and decimals, plus gross pay.
- Business Day CalculatorAdd or subtract business days from a date, or count the working days between two dates, with your own weekend and holidays.
- Overtime CalculatorCalculate overtime pay from your hourly rate, hours worked, overtime multiplier and thresholds, with weekly pay and effective hourly rate.