Time Duration Calculator
- Start: 9:30 is minute 570 of the day.
- End: 17:45 is minute 1,065.
- Difference: 1,065 - 570 = 495 minutes = 8 hours, 15 minutes (8.25 hours).
A time duration calculator finds the difference between two clock times and returns the result in three forms: hours and minutes, total minutes, and decimal hours. For example, 9:30 to 17:45 is 8 hours, 15 minutes — 495 minutes, or 8.25 hours in decimal form. When the end time is earlier than the start time, the interval crosses midnight and 24 hours must be added, or the next-day option used. For instance, 23:40 to 1:20 the next day is 1 hour, 40 minutes — 100 minutes, or 1.67 hours. A simpler interval like 8:00 to 12:00 yields 4 hours, 0 minutes — 240 minutes.
The underlying method is the accepted standard because it mirrors manual subtraction in base 60: if the end minutes are smaller than the start minutes, you borrow one hour as 60 minutes. Decimal hours (8.25 rather than 8:15) are what payroll and billing systems multiply by an hourly rate, making this format essential for wage and invoice calculations. This page shows the formula, step-by-step workings, worked examples, and sources so you can verify every result with confidence.
Worked examples
Workday 9:30 to 17:45
Primary result: 8 hours, 15 minutes — 495 minutes, or 8.25 decimal hours for a timesheet. (9 · 30 · 17 · 45 · No, same day)
| Duration between the two times | 8 hours, 15 minutes |
| Total minutes | 495 |
| In decimal hours | 8.25 |
| Total seconds | 29,700 |
Overnight 23:40 to 1:20
Primary result: 1 hour, 40 minutes — the next-day flag carries the count past midnight. (23 · 40 · 1 · 20 · Yes, next day)
| Duration between the two times | 1 hour, 40 minutes |
| Total minutes | 100 |
| In decimal hours | 1.67 |
| Total seconds | 6,000 |
Morning block 8:00 to 12:00
Primary result: 4 hours, 0 minutes — a clean 240-minute block. (8 · 0 · 12 · 0 · No, same day)
| Duration between the two times | 4 hours, 0 minutes |
| Total minutes | 240 |
| In decimal hours | 4.00 |
| Total seconds | 14,400 |
How duration between times is worked out
A time duration calculator works by converting both the start and end times into minutes since midnight, subtracting the start from the end, and converting the result back into hours and minutes. This approach handles every case cleanly, including intervals that cross midnight. Duration is simply the difference between two clock times; when the end is earlier than the start, the interval crosses midnight and 24 hours (1,440 minutes) must be added, or the next-day option must be used.
The subtraction step works like ordinary subtraction in base 60. If the end minutes are smaller than the start minutes, borrow one hour as 60 minutes and add it to the end minutes before subtracting. This mirrors how borrowing works in standard arithmetic. For example, with 9:30 to 17:45, the calculator converts 9:30 to 570 minutes and 17:45 to 1,065 minutes, then subtracts to get 495 minutes, which converts back to 8 hours, 15 minutes, or 8.25 hours in decimal form.
When the end time is earlier than the start time, the interval has crossed midnight. Take 23:40 to 1:20 the next day: 23:40 converts to 1,420 minutes, while 1:20 converts to only 80 minutes. Since 80 is smaller than 1,420, the calculator adds 1,440 minutes for the midnight crossing, making the end value 1,520 minutes. Subtracting 1,420 from 1,520 gives 100 minutes, which is 1 hour, 40 minutes, or 1.67 hours in decimal form.
Decimal hours matter because payroll and billing systems multiply by an hourly rate using the decimal form — 8.25 rather than 8:15. A straightforward interval like 8:00 to 12:00 produces 240 minutes, or 4 hours, 0 minutes, with no borrowing or midnight adjustment needed.
Decimal hours for timesheets
Many employers ask you to record time in decimal hours rather than hours and minutes. The reason is simple: payroll and billing systems multiply decimal hours, such as 8.25, directly by an hourly rate. Converting minutes to decimals requires dividing the minutes by 60. A time duration calculator can handle this automatically, but the math is straightforward enough to do by hand.
Start by finding the duration, which is the difference between two clock times. Borrowing works like subtraction in base 60: if the end minutes are smaller than the start minutes, borrow one hour as 60 minutes. When the end time is earlier than the start time, the interval crosses midnight and 24 hours must be added, or the next-day option used. For example, 9:30 to 17:45 is 8 hours, 15 minutes, which equals 495 minutes, or 8.25 hours in decimal form. Another example: 8:00 to 12:00 is 4 hours, 0 minutes, totaling 240 minutes, or 4.00 decimal hours. A midnight-crossing shift from 23:40 to 1:20 the next day is 1 hour, 40 minutes, equaling 100 minutes, or 1.67 hours.
Several minute values appear so often on timesheets that memorizing them speeds up the conversion. The common conversions are 15 minutes equal to 0.25 hours, 30 minutes equal to 0.50 hours, and 45 minutes equal to 0.75 hours. Rounding to tenths gives one digit after the decimal point, while rounding to hundredths gives two digits. Many companies round to tenths, meaning 8 hours and 8 minutes becomes 8.1 hours. Rounding to hundredths provides greater precision, so the same 8 hours and 8 minutes becomes 8.13 hours. Check your employer's policy before choosing a rounding level.
| Start time | End time | Hours and minutes | Total minutes | Decimal hours |
|---|---|---|---|---|
| 9:30 | 17:45 | 8 hours, 15 minutes | 495 minutes | 8.25 hours |
| 23:40 | 1:20 (next day) | 1 hour, 40 minutes | 100 minutes | 1.67 hours |
| 8:00 | 12:00 | 4 hours, 0 minutes | 240 minutes | 4.00 hours |
Overnight and shift durations
Duration is the difference between two clock times; when the end is earlier than the start, the interval crosses midnight and 24 hours must be added (or the next-day option used). This is why the date matters as much as the clock time. A flight leaving at 23:40 and landing at 1:20 the next day is not a negative journey, and a night shift from 22:00 to 06:00 is not an impossible one. The clock alone does not tell the whole story. You need the date to anchor the calculation. The worked example 23:40 to 1:20 the next day is 1 hour, 40 minutes — 100 minutes, or 1.67 hours. Without the next-day marker, the math would look like the end came before the start.
Borrowing works like subtraction in base 60: if the end minutes are smaller than the start minutes, borrow one hour as 60 minutes. In the 23:40 to 1:20 example, the end minutes (20) are smaller than the start minutes (40), so you borrow one hour as 60 minutes. This is the same logic you learned for standard subtraction, only the base is 60 instead of 10. A time duration calculator handles this automatically, but understanding the mechanism helps you spot errors and trust the result.
Consider a straightforward daytime example. The worked example 8:00 to 12:00 is 4 hours, 0 minutes — 240 minutes. No borrowing, no midnight crossing. The worked example 9:30 to 17:45 is 8 hours, 15 minutes — 495 minutes, or 8.25 hours in decimal form. Here the end minutes (45) are larger than the start minutes (30), so no borrow is needed. The hours and minutes subtract cleanly. The decimal conversion, 8.25, is not the same as 8:25. Decimal hours (8.25 rather than 8:15) are what payroll and billing systems multiply by an hourly rate. If you are paid $20 per hour for 8 hours and 15 minutes of work, the system uses 8.25, not 8:15, because 8.25 is the decimal representation of 8 hours and 15 minutes.
Night shifts, flights crossing midnight, and any work that spans two calendar days all share the same challenge: the clock resets to zero at midnight, but the duration does not. The date is the anchor that keeps the calculation grounded. Whether you use a time duration calculator or do the math by hand, the principle is the same: when the end is earlier than the start, you are crossing into the next day, and the interval is longer than the raw clock difference suggests.
Common mistakes
One of the most common mistakes people make when using a time duration calculator is treating a clock reading like 8:15 as 8.15 hours. That confusion leads to errors in payroll, billing, and project tracking. The minutes in a clock time are not a decimal fraction of the hour; they are a remainder out of 60. In the worked example of 9:30 to 17:45, the duration is 8 hours and 15 minutes, which equals 495 minutes. To convert that to decimal hours, divide 15 minutes by 60, which gives 0.25. The correct decimal form is 8.25 hours, not 8.15. Decimal hours (8.25 rather than 8:15) are what payroll and billing systems multiply by an hourly rate, so getting this conversion right matters for accurate pay and invoices.
Another frequent error is forgetting to specify AM or PM when entering times in 12-hour format. If you type 8:00 to 12:00 without clarifying, the calculator may assume both times fall within the same half of the day. In the worked example of 8:00 to 12:00, the duration is 4 hours and 0 minutes, or 240 minutes — but only when both times are clearly AM or clearly PM. If the start is 8:00 AM and the end is 12:00 PM (noon), the result is correct. If the end is 12:00 AM (midnight), the interval crosses midnight and the result changes entirely. Always double-check the AM/PM selection, or switch to 24-hour time to remove the ambiguity.
A third common mistake involves negative durations. Duration is the difference between two clock times; when the end is earlier than the start, the interval crosses midnight and 24 hours must be added (or the next-day option used). In the worked example of 23:40 to 1:20 the next day, the end time of 1:20 is smaller than the start time of 23:40, so a simple subtraction would produce a negative number. The correct interval is 1 hour and 40 minutes, which equals 100 minutes, or 1.67 hours in decimal form. Using a next-day option or adding 24 hours to the result resolves the issue.
Finally, when performing manual subtraction, remember that borrowing works like subtraction in base 60: if the end minutes are smaller than the start minutes, borrow one hour as 60 minutes. For example, subtracting 9:30 from 17:45 is straightforward because 45 minutes is greater than 30. But subtracting 9:45 from 17:30 requires borrowing one hour (60 minutes) from the 17, turning it into 16:90. Then 90 minus 45 gives 45 minutes, and 16 minus 9 gives 7 hours, for a total of 7 hours and 45 minutes. Skipping this step is a common source of errors in hand calculations.
FAQs
How long is 9:30 to 17:45?
The duration from 9:30 to 17:45 is 8 hours, 15 minutes. That equals 495 minutes total, or 8.25 hours in decimal form. You can use whichever format suits your needs, but all three represent the same span of time between the start and end points.
How do you calculate duration across midnight?
Add 24 hours to the end time before subtracting the start time. For example, 23:40 to 1:20 is 1 hour, 40 minutes. This method correctly accounts for the day change that occurs at midnight, giving you an accurate duration for any overnight interval.
What is 45 minutes in decimal hours?
45 minutes equals 0.75 hours in decimal form. Minutes divided by 60 gives the decimal fraction, so 45 divided by 60 equals 0.75. This conversion is useful for payroll, billing, and any calculation that requires time expressed as a decimal rather than minutes.
Why does my spreadsheet show 8.15 instead of 8.25?
8 hours 15 minutes is 8.25 decimal hours. Writing it as 8.15 understates the time and is a common payroll error. This happens because 15 minutes is one quarter of an hour, or 0.25 in decimal form, not 0.15. Always convert minutes to decimals by dividing by 60.
How many minutes are in 4 hours?
There are 240 minutes in 4 hours. Multiply hours by 60 to convert any number of hours into minutes. This conversion works because each hour contains exactly 60 minutes, so 4 times 60 gives you the total minutes for that time span.
Can a duration be negative?
Only if the end precedes the start on the same day. For overnight intervals, mark the end as next day instead. This avoids negative durations and keeps your calculations clear. A negative result usually means the end time was earlier than the start time without accounting for a day change.