Skip to content

Time duration calculator

Enter a start and an end time to get the duration in hours and minutes, in decimal hours and in total minutes. Overnight spans are counted properly — 10:00 PM to 6:00 AM is 8 hours — and adding dates measures a span that runs across several days. It calculates as you type, nothing is sent anywhere, and there is no signup.

Span

Leave the dates empty for a single shift. An end time earlier in the day than the start is then read as the next morning. For a span across more than one day, fill both dates — one date on its own leaves nothing to measure between.

Duration

8 h 30 m = 8.50 h

510 minutes in total

The formula

same day: duration = end − start

example: 17:30 − 9:00 = 8 h 30 m = 8.50 h

over midnight: duration = (end + 24 h) − start

example: (6:00 + 24 h) − 22:00 = 8 h 00 m = 8.00 h

across dates: duration = (whole days between × 24 h) + end − start

Common shift spans, already worked out

These are the spans people look up most often. They are unpaid-break-free: subtract the break yourself, or use the timecard calculator which takes breaks off each day for you.

Duration of common shift spans in hours and minutes and in decimal hours
SpanDurationDecimal hours
9:00 AM – 5:00 PM8 h 00 m8.00
9:00 AM – 5:30 PM8 h 30 m8.50
8:00 AM – 5:00 PM9 h 00 m9.00
8:30 AM – 4:30 PM8 h 00 m8.00
7:00 AM – 3:30 PM8 h 30 m8.50
12:00 PM – 8:00 PM8 h 00 m8.00
7:00 PM – 3:00 AM8 h 00 m8.00
10:00 PM – 6:00 AM8 h 00 m8.00
11:30 PM – 8:00 AM8 h 30 m8.50
Overnight rows are counted across midnight: 10:00 PM to 6:00 AM is eight hours.

How many hours is 9:00 AM to 5:30 PM?

Eight and a half hours — 8 h 30 m, or 8.50 in decimal hours. Both times fall on the same day, so it is a plain subtraction: 17:30 minus 9:00. The minutes are the part people get wrong. 17:30 − 9:00 is 8 hours and 30 minutes, which is 8.5 hours, not 8.30 hours. Minutes are sixtieths, not hundredths.

If half an hour of that was an unpaid lunch, the paid duration is 8 h 00 m. A duration calculator measures the span; whether the whole span is paid or billable is a separate decision, and it is the one that decides what goes on the invoice.

How many hours is 10 PM to 6 AM?

Eight hours. Subtracting straight across gives 6:00 − 22:00 = −16 hours, which is the classic overnight mistake. The end time belongs to the next day, so add 24 hours to it first: (6:00 + 24 h) − 22:00 = 8 h 00 m. The calculator above does this automatically whenever the end time is earlier in the day than the start, so a night shift needs no special handling.

How do you calculate a duration across two dates?

Count the whole days between the dates, multiply by 24 hours, then add the difference between the two clock times. A job that starts at 08:00 on 3 March and finishes at 12:15 on 5 March spans two whole days — 48 hours — plus 4 h 15 m between 08:00 and 12:15. That is 52 h 15 m, or 52.25 hours, or 3,135 minutes. Fill both date fields above and it is worked out for you.

One thing worth knowing: the days are counted on the calendar, not on the clock. A span that crosses a daylight-saving change is still counted as whole calendar days, which is how payroll and timesheets treat it too.

Which unit should you actually use?

Keep minutes underneath and convert at the end. Hours and minutes are readable but base-60, so they are painful to add: a column of 1:20, 0:35 and 2:50 does not sum without carrying. Decimal hours multiply cleanly against a rate but hide the original figure. Total minutes are exact and never round. The safe habit is to hold every entry in whole minutes, add them up, and convert once — at the line that goes on the invoice.

Converting is one division: hours to decimal hours divides the minutes by 60. What that decimal is worth at your rate is what the billable hours calculator answers.

Durations are what a billable entry is made of

Every line on an hourly invoice is a duration with a name on it. The arithmetic on this page is the easy half. The hard half is remembering the spans: the twenty minutes on a client call before the meeting officially started, the file you reopened after dinner, the fix you shipped on a Sunday. Those spans are real work and they are the ones that never make it onto a timesheet, because writing them down means interrupting them.

That is the gap this calculator cannot close, and it is worth being straight about: no amount of clock arithmetic recovers a span nobody wrote down.

The spans you forget are the ones that cost you

BillNotch records your working day in the background — start and end times captured as they happen, grouped per project, already summed. You review what it found instead of reconstructing yesterday from memory, and the total is invoice-ready when you are.

Start the 14-day trial

No credit card. Cancel anytime.

Everything runs in your browser. No times are sent anywhere, no account required.