1 Hour 15 Minutes Is 1.25 Hours, Not 1.15: How to Convert Time for Invoices and Timesheets

2026-12-01来源 dev.toEnglish

The most expensive typo I see on invoices is a decimal point in the wrong kind of number.

Someone works 1 hour and 15 minutes and bills 1.15 hours. That is 1 hour and 9 minutes, not 1 hour and 15. The fifteen in "1:15" is minutes. The fifteen in "1.15" is a hundredth of an hour, and a hundredth of an hour is 36 seconds. They are not interchangeable.

The conversion is not complicated:

Decimal hours = hours + (minutes ÷ 60)

1 hour 15 minutes = 1 + (15 ÷ 60) = 1.25 hours.

2 hours 45 minutes = 2 + (45 ÷ 60) = 2.75 hours, not 2.45.

6 hours 40 minutes = 6 + (40 ÷ 60) = 6.667 hours, which usually gets billed as 6.67, not as 6.40.

I have seen the 6:40 / 6.40 version on a real timesheet. At $80 an hour, the difference is 0.267 hours, or about $21 on a single line. Do that once a week for a year and you have given away a useful amount of money, or, if you are the client, you have been overcharged if the typo went the other way.

Minutes are base 60. Decimals are base 10. That is the whole issue.

We write clock time as hours and minutes, and minutes roll over at 60. We write billing time as a decimal hour, and the digits after the point roll over at 100. If you copy "15" across the colon and past the decimal point, you have treated a sixtieth as a hundredth.

A few conversions worth memorizing, because they come up constantly:

Clock time Decimal hours Common wrong value
0:15 0.25 0.15
0:20 0.333… 0.20
0:30 0.50 0.30
0:40 0.667 0.40
0:45 0.75 0.45
1:15 1.25 1.15
2:45 2.75 2.45

If you need seconds as well:

Decimal hours = hours + (minutes ÷ 60) + (seconds ÷ 3600)

1:15:30 is 1 + 15/60 + 30/3600 = 1.2583 hours, not 1.1530.

Worked example: a week of invoice lines

Suppose these entries are written as hours:minutes, and you need decimal hours for the invoice:

  • Monday: 7:20
  • Tuesday: 6:40
  • Wednesday: 8:00
  • Thursday: 5:15
  • Friday: 4:45

Correct decimal hours:

  • 7:20 → 7.333
  • 6:40 → 6.667
  • 8:00 → 8.000
  • 5:15 → 5.250
  • 4:45 → 4.750
  • Total: 32.000 hours

If each ":" is replaced with a "." and the minutes are treated as decimal, you get 7.20 + 6.40 + 8.00 + 5.15 + 4.45 = 31.20 hours. That is 0.80 hours low, 48 minutes of work that never reaches the invoice. At $80 an hour, that is $64 for the week, from a typo that looks tidy in a spreadsheet because every cell still "looks like time."

The fix in a spreadsheet is to store a real duration (or a start and end time) and display it as [h]:mm, then convert with hours + minutes/60, not by editing the cell into a decimal by hand. If you only have a start time and an end time, the elapsed time is the thing to compute first. A time duration calculator will do that conversion and the decimal-hour step without mixing the two notations.

This is not the same problem as counting days

If the question is "how many days were you on site?" or "how many days until the deadline?", you are no longer converting minutes to hours. You are counting calendar dates, and inclusive versus exclusive counting will move the answer by a day. That is a different tool and a different article. Use a date difference calculator for the date question, and keep clock duration for the hours-and-minutes question. Mixing them is how a three-day job becomes "72 hours" when nobody worked overnight.

Overnight shifts and time-zone changes are a third problem again. If a shift starts at 21:45 and ends at 07:10 the next morning, subtracting the clock times as if they were on the same day produces a negative or nonsense figure. The decimal-hour conversion above assumes you already have a correct duration. It will not invent one from two clock faces on either side of midnight.

A tiny check you can run

function toDecimalHours(h, min, sec = 0) { if (min < 0 || min >= 60 || sec < 0 || sec >= 60) { throw new Error("minutes and seconds must be in 0–59"); } return h + min / 60 + sec / 3600; } console.log(toDecimalHours(1, 15).toFixed(2)); // 1.25 console.log(toDecimalHours(6, 40).toFixed(2)); // 6.67 console.log(toDecimalHours(1, 15, 30).toFixed(4)); // 1.2583 

If your own function returns 1.15 for 1 hour 15 minutes, it is concatenating, not converting. I would add the range check too. A value of 1:75 is not a time; it is a data-entry error that should not silently become 2.15 or 1.75 depending on who wrote the parser.

Short checklist

  1. Write clock times with a colon (1:15) and decimal hours with a point (1.25). Do not let the two notations share a column without a header that says which one it is.
  2. Convert with minutes ÷ 60, never by swapping the colon for a decimal point.
  3. Total the decimal hours after conversion, not the "1.15" lookalikes.
  4. If the question is days, stop using this formula and count dates instead.
  5. If the shift crosses midnight, compute the duration properly first, then convert.

The rule I keep coming back to is boring, and that is why it works: 15 minutes is a quarter of an hour. It is 0.25, every time. If a timesheet says 0.15 for a quarter hour, the sheet is wrong, even if it looks neat.

This is a general explanation of duration conversion for invoices and timesheets. It is not payroll, tax, or billing advice, and it does not replace your contract's rounding rules.

原文:https://www.a8q9.cn/en/article/1-hour-15-minutes-is-1-25-hours-not-1-15-how-to-convert-time-for-invoices-and-ti-76d1ab.html

相关文章