Every dayDate & Time

Time Duration
calculator.

Find the time between two clock times with a break taken off, add up a list of times, and turn hours and minutes into decimal hours for a timesheet.

How it's worked out

The tool turns each clock time into minutes after midnight. 9:00 am is 540 and 5:30 pm is 1,050. It takes the start from the end, then takes off the unpaid break:

time worked\displaystyle \text{time worked}=end−start−break\displaystyle {}=\;\text{end} - \text{start} - \text{break}

If the end is earlier than the start, the shift ran past midnight. The tool then adds one day, 1,440 minutes, to the end before it subtracts. That is why 10:00 pm to 6:30 am gives 8:30 and not a negative number.

An hour has 60 minutes, not 100. So the minutes after the colon are sixtieths of an hour. To get decimal hours, keep the whole hours and divide the minutes by 60:

decimal hours\displaystyle \text{decimal hours}=hours+minutes60\displaystyle {}=\;\text{hours} + \frac{\text{minutes}}{60}

To go back, multiply the part after the point by 60. 8.2 hours is 8 hours and 0.2 × 60 = 12 minutes, so 8:12. The tool rounds that to the nearest whole minute. The Working card shows each step for your own times and checks the answer by adding it, and the break, back onto the start time.

Worked examples

Maya's office day

Maya clocks in at 9:00 am and out at 5:30 pm, with a 30-minute unpaid lunch. The clock shows 8:30. Take off the lunch and she worked 8:00, which is 8.00 decimal hours or 480 minutes.

Open this example in the tool

Luis on the night shift

Luis starts at 10:00 pm and leaves at 6:30 am, with no unpaid break. The end comes before the start on the clock, so it counts as the next morning. He worked 8:30, or 8.50 hours.

Open this example in the tool

Priya and the 7.45 trap

Priya works 8:15 am to 4:30 pm with a 30-minute break. That is 7:45. Her payroll form wants decimal hours, so she should enter 7.75. If she typed 7.45, payroll would read it as 7:27, which is 18 minutes short every day.

Open this example in the tool

The list card adds blocks of time too. A freelancer who logged 1:30, 2:45, a correction of −0:15 and 1h 5m has 5:05 in total, or 5.08 hours to bill.

Reading your result

The big number is h:mm, hours and minutes, the way a clock reads. 8:30 means eight and a half hours. The decimal under it is the same time for a payroll form or an invoice: 8:30 is 8.50.

Pick the decimal places to match where the number goes. Two places suit most payroll systems. One place is tenths of an hour, the unit many lawyers and consultants bill in. Each tenth is exactly 6 minutes, so 8:10 billed in tenths is 8.2 hours, or 8:12.

Rounding clock times is allowed in the US within limits. The Department of Labor rule, 29 CFR 785.48(b), accepts rounding to the nearest 5 minutes, tenth or quarter of an hour. Over time, it must not leave you paid for less than you worked. Your employer's policy decides which unit you use. This tool shows the exact time, so you can check it against what your payslip says.

The "Ends" tile tells you if the end time was read as the next day. If you meant a shift of more than 24 hours, split it into two entries and add them in the list card.

Common mistakes

  • Reading the colon as a decimal point. 7:45 is 7.75 hours, not 7.45. 7:30 is 7.5, not 7.3. At $20 an hour, entering 7.45 for a 7:45 day pays $149 instead of $155.
  • Rounding each day, then adding. Add the exact days first and round the weekly total once. Small roundings in the same direction add up over a month.
  • Forgetting that decimal hours round to a minute. 8.33 hours is 8:20, because 0.33 × 60 is 19.8 minutes. A third of an hour, 20 minutes, is 0.3333…, so a form that only takes two places can never hold it exactly.
  • Night shifts when the clocks change. On the night daylight saving starts, a 10:00 pm to 6:00 am shift lasts 7 hours. On the night it ends, 9 hours. The tool counts clock readings, so it shows 8:00 both times. Take off or add the hour yourself.
  • Typing 24:00 for midnight. Use 12:00 am or 0:00. Times like 12 pm mean noon.

Questions people ask

Divide the minutes by 60 and add them to the whole hours. 45 minutes is 0.75 hours, so 7 hours 45 minutes is 7.75. The Minutes as decimal hours table lists the common values, such as 20 minutes as 0.33 and 50 minutes as 0.83.

Sources