Skip to content

Menu

Time Duration Calculator

Calculate duration between times or add/subtract time intervals.

Runs entirely in your browserMath & FinanceFree, no sign-up
Loading tool

01What is Time Duration Calculator?

This calculator answers one small but annoying question: how much time sits between two clock times? You pick a Start Time and an End Time with your browser's time pickers, and the Duration panel fills in straight away. There's no button to press. The math is simple and fully visible in the code. Each time is turned into minutes since midnight, so 09:00 becomes 540 and 17:30 becomes 1050. The tool subtracts the start from the end and shows the gap three ways. You get hours and minutes (8h 30m), total minutes (510) and decimal hours rounded to two places (8.50). Decimal hours are what most timesheets, payroll exports and invoicing apps ask for, and they trip people up. Forty-five minutes is 0.75 of an hour, not 0.45. Night shifts get a simple rule. If the end time is earlier than the start, the tool assumes the end falls on the next day and adds 24 hours. So 22:15 to 06:45 comes out as 8h 30m, which is what a night worker expects. The same rule has a catch, though. If you mistype and put 07:05 as the end of a shift that started at 07:10, you get 23h 55m instead of an error. Equal start and end times give zero, never a full day. Here's a quick worked example. A contractor starts at 08:40 and stops at 12:20. The tool shows 3h 40m, 220 total minutes and 3.67 decimal hours. That last figure is 3.666... rounded to two places, so on a long invoice the rounding can add up by a cent or two per line. If your client bills in quarter hours, round it yourself. The copy icon in the Duration header copies the hours-and-minutes text only, such as 3h 40m. To grab total minutes or decimal hours, select the number by hand. Reset clears both pickers. Now the honest limits. The tool knows times of day, not dates, so it can't measure anything longer than 24 hours. It has no idea about time zones or daylight saving. On the night clocks go back, a shift from 22:00 to 06:00 really lasts nine hours, yet the tool will still say eight. It also doesn't know about seconds, because the time inputs work in whole minutes. Unpaid breaks are on you to subtract. The two times you enter never leave the page, since the subtraction happens in the page's own JavaScript.

Shift workers, freelancers and team leads who need clock times turned into hours, minutes or decimal hours for a timesheet or invoice. The tool runs entirely in your browser, so your data never leaves your device.

02How to use Time Duration Calculator

  1. Set the Start Time with the time picker.
  2. Set the End Time. If it's earlier than the start, the tool counts it as the next day.
  3. Read the Duration panel: Hours & Minutes, Total Minutes and Decimal Hours.
  4. Click the copy icon in the Duration header to copy the hours-and-minutes text.
  5. Press Reset to clear both times and start over.

03Worked examples

Input: Start 09:00, End 17:30
Result: 8h 30m; 510 total minutes; 8.50 decimal hours
A standard day shift with no break subtracted.
Input: Start 22:15, End 06:45
Result: 8h 30m; 510 total minutes; 8.50 decimal hours
The end is earlier than the start, so the tool treats it as the next morning.
Input: Start 08:40, End 12:20
Result: 3h 40m; 220 total minutes; 3.67 decimal hours
3.666... hours is rounded to two places.
Input: Start 13:05, End 14:50
Result: 1h 45m; 105 total minutes; 1.75 decimal hours
45 minutes is 0.75 of an hour, not 0.45.
Input: Start 07:10, End 07:05
Result: 23h 55m; 1435 total minutes; 23.92 decimal hours
A likely typo still gets treated as an overnight span, so watch for results near 24 hours.
Input: Start 08:20, End 08:20
Result: 0h 0m; 0 total minutes; 0.00 decimal hours
Equal times give zero, not 24 hours.

04Common use cases

  • Working out how long a night shift ran, for example 22:15 to 06:45, without counting on your fingers past midnight
  • Turning a start and finish time into decimal hours like 7.75 for a timesheet or payroll export
  • Filling in a freelance invoice line where the client wants hours to two decimal places
  • Measuring a maintenance or deployment window from the clock times in a change log
  • Checking that a meeting or training session ran as long as the agenda said
  • Sanity-checking a total-minutes figure before typing it into a time-tracking API or spreadsheet

05Tips

  • A result close to 24 hours usually means the end time was typed a few minutes before the start, not that someone worked a full day.
  • Decimal hours are rounded to two places, so 3h 40m shows as 3.67. For quarter-hour billing, round to 3.75 or 3.5 yourself.
  • On a daylight saving change night the real elapsed time is an hour longer or shorter than shown, so fix those shifts by hand.
  • The copy button only copies the 'Xh Ym' text. Select Total Minutes or Decimal Hours directly if that's the number you need.
  • Your device decides if the picker shows 12-hour or 24-hour format, but the calculation is the same either way.

06Related concepts

Elapsed time, Decimal hours, Timesheet, Overnight shift.

Frequently Asked Questions

What is Time Duration Calculator?

Time Duration Calculator is a free, browser-based developer tool on AIDToolStack. Calculate duration between times or add/subtract time intervals. It requires no installation or sign-up and works entirely in your browser.

Is Time Duration Calculator free to use?

Yes. No sign-up, no fees and no usage cap.

Does Time Duration Calculator store my data?

No. It runs in your browser; nothing is uploaded.

Related Tools

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe