Time Duration Calculator: Work Hours and Decimal Hours

Last updated: · 3 min read

Timesheets, shifts, exam times and job durations are often written as hours and minutes, which are awkward to add because a 60-based system is mixed with decimals. This guide explains how the calculator finds the time between two clock times, handles a shift that crosses midnight and adds several durations, including subtracting one by putting a minus sign in front of it. It shows the result as hours and minutes, decimal hours and total minutes together.

Formula

Duration (min) = (end min − start min + 1440) mod 1440
Hours:minutes = ⌊min ÷ 60⌋ : (min mod 60)
Decimal hours = min ÷ 60
List mode: each duration is converted to hours × 60 + minutes and added; a duration with a minus sign is subtracted

A day has 1440 minutes. If the end time is earlier than the start time, 1440 is added to find the duration across midnight. Decimal hours are the minutes divided by 60: 7:45 equals 7.75 hours. The most common mistake is reading 7:45 as 7.45.

What the inputs mean

Calculation type
'Time between two clock times' or 'Add / subtract durations'. The first takes two times; the second takes a list of durations.
Start time
In HH:MM format, 24-hour clock. Example: 09:00.
End time
In HH:MM format. If the end time is earlier than the start time, the result is treated as the next day. Example: 17:30.
Durations (one per line, e.g. 7:45; put − in front to subtract)
Each line in HH:MM format. A duration with a minus sign in front is subtracted from the total. At least one duration is required.

Worked example: Day shift 09:00–17:30 and night shift 22:00–06:00

  1. 17:30 − 09:00 = 8 hours 30 minutes; in minutes 1050 − 540 = 510.
  2. 510 ÷ 60 = 8.5 decimal hours.
  3. From 22:00 to 06:00 the end is earlier than the start, so 1440 is added: (360 − 1320 + 1440) = 480 minutes = 8:00.
  4. Duration list 7:45, 8:15 and −0:30: 465 + 495 − 30 = 930 minutes = 15:30 (decimal 15.5).

Result: The day shift lasts 8:30 and the night shift lasts 8:00. The list of three durations adds up to 15:30, which is 15.5 decimal hours for payroll or timesheet use.

⏱️ Time Duration Calculator

Free, no sign-up; your data stays in your browser.

Open the calculator →

How to read the result

The tool does not deduct breaks automatically; subtract the break yourself to get the net working time. Pay and timesheet calculations depend on legal and contractual rules. This is general information.

Common mistakes

  • Writing decimal hours as 7.45 instead of 7:45; 7.45 hours is 7 hours and 27 minutes.
  • Entering an end time earlier than the start time for an overnight shift and expecting a negative result; the tool counts it as the next day.
  • Adding minutes as if there were 100 per hour: 0:45 + 0:30 = 1:15, not 1:00.
  • Forgetting the minus sign on a duration to subtract; writing 0:30 instead of −0:30 increases the total.
  • Forgetting to deduct breaks; gross time is not the same as net working time.

Frequently asked questions

How is decimal time calculated?

The minutes are divided by 60 and added to the hours: 7:45 = 7 + 45/60 = 7.75 hours.

Does the date change when a shift crosses midnight?

The tool gives only the duration; it adds a note when the end falls on the next day.

Can the list mode total more than 24 hours?

Yes. The total in list mode can be well over 24 hours. The two-times mode gives a duration of at most one day.

Can I enter seconds?

No. Only HH:MM is accepted; if you have seconds, convert them to minutes before entering.

The result is not exact or binding and is for information only; it is not an official document and cannot be used in official procedures. Confirm it with the competent authority or a professional before acting; no liability is accepted for losses arising from its use.

Sources

Choose your cookie preference to continue

Records the site needs to work (theme, language, favourites) stay in your browser.

This site is free and funded by ads.

With your consent, Google Analytics cookies measure visits and Google AdSense cookies are used to show ads; the data is processed on Google servers abroad.

If you reject, the site works just the same.

Cookie Policy · KVKK notice