Use this time duration calculator online when you need the exact length of a workday, a call or a drive without counting on your fingers. Type two clock readings, add any unpaid pause, and you get the hours and minutes that passed, plus a decimal figure ready for a timesheet. This guide shows how the arithmetic works, where it trips people up, and how to carry the result into payroll. See also our Resulting Date — Calendar.
What Is a Time Duration Calculator?
A time duration calculator measures the elapsed time between a beginning and an ending, then reports the gap as a length instead of a clock reading. Clocks count in base-60, so ordinary subtraction fails: 9:50 minus 8:20 is 1 hour 30 minutes, not 1.30. The tool handles the time arithmetic, so you never borrow an hour by hand or carry over sixty minutes into the next column. Think of it as a time difference calculator that also understands breaks and midnight.
Time Duration Between Two Times
The time duration between two clock times equals the end minus the start, counted in minutes and regrouped into hours. From 08:47 to 17:26 the gap is 519 minutes, which regroups as 8 hours 39 minutes. When the finish lands on the next day, the tool adds 24 hours first, so the duration never runs backwards.
$$\text{Duration} = (\text{End} - \text{Start}) \bmod 24\text{ h}$$
Add Time or Subtract Time
Some jobs combine two lengths instead of two clock times. Adding 2 hours 14 minutes 40 seconds to 1 hour 51 minutes 35 seconds gives 4 hours 6 minutes 15 seconds, and the total seconds figure reads 14,775. People use a time addition calculator for lap totals and editing logs, and you can convert the answer into any of the other time units whenever you need a different time conversion.
How to Use the Time Calculator Step by Step
To calculate time duration you need only a few entries, and this order keeps mistakes out.
- Pick your layout, then type the hours and minutes (and seconds, if you track them) for the beginning.
- Type the hours, minutes and seconds for the ending.
- Enter any unpaid pause in minutes.
- Press calculate and read the duration in hours, minutes and decimal form.
Enter the Start Time and End Time
Type the start time first, then the end time. If the finish is earlier than start time, the tool reads it as the following morning, so a 21:40 beginning and a 06:15 ending still produce a sensible answer. A wrong end time causes most bad results, so recheck what you typed before pressing calculate. Put any break minutes in the optional box.
Choose 12-Hour or 24-Hour Military Time
Match the time format to your clock. A 12-hour reading needs an AM/PM marker, so 5:26 PM and 17:26 are the same clock time. The 24-hour layout, often called military time, removes that guesswork, and the result is identical either way.
Read Total Hours and Total Minutes
The readout gives a duration plus several totals. For the 08:47 to 17:26 example it shows 8 hours 39 minutes, total minutes of 519, total seconds of 31,140 and total hours of 8.65. A longer span can be restated in days, weeks, months or years, though the decimal figure is the one payroll wants.
Calculate Time Difference Across Midnight and Breaks
Two cases cover nearly every job: a same-day span and one that runs past the day's end. Both follow one rule, and each takes under a minute to verify by hand.
Overnight Shift Formula
An overnight shift from 21:40 to 06:15 crosses midnight, so add 24 hours to the end before subtracting: 30:15 minus 21:40 leaves 8 hours 35 minutes. Nurses and warehouse crews on long shifts use the same rule on rotating shifts, and it lets the clock wrap around without a negative result.
$$\text{Net duration} = (\text{End} + 24\text{ h}) - \text{Start} - \text{Break}$$
Lunch Break Deduction
Take the lunch break off after finding the raw span. The 08:47 to 17:26 day holds a 35-minute pause, so 519 minus 35 leaves 484 minutes, or 8 hours 4 minutes. An unpaid break comes off the total, while a paid one stays in. Several lunch breaks across long working hours or irregular work schedules work the same way, one subtraction per pause.
Excel and Google Sheets Formulas
In Excel or Google Sheets, times are fractions of a day, so =MOD(B2-A2,1) returns the same-day or overnight gap and multiplying by 24 yields hours. Deduct the pause divided by 60, then apply the minutes to decimal rule from the chart below.
Duration Check for a Hospital Lab Technician's Night Shift
A lab technician wants to know what to write on Friday's sheet after a night in the specimen lab. The badge reads 22:18 in and 06:41 out, there was a 40-minute pause, and the roster promised 8 hours. I'd enter those three numbers into the time duration calculator: 22:18 for the beginning, 06:41 for the ending, and 40 in the break minutes box. You might also find our use the Military Time Converter useful.
Because the ending sits earlier than the beginning, the tool adds 24 hours and works out the time duration across midnight: 30:41 minus 22:18 is 8 hours 23 minutes, or 503 minutes. Taking off the pause leaves 463 total minutes, which is 7 hours 43 minutes. The conversion is 43 ÷ 60 = 0.717, so the decimal hours figure is 7.72. A hand check agrees: 22:18 to midnight is 1 hour 42 minutes, midnight to 06:41 is 6 hours 41 minutes, and together that is 8 hours 23 minutes. Payroll that rounds to the nearest quarter hour books 7.75, which sits inside the seven-minute rounding rule the US Department of Labor accepts.
The number to watch is the pause, because each 10 minutes moves the pay figure by about 0.17 hours:
| Break | Net duration | Decimal hours |
|---|
| 30 minutes | 7 h 53 min | 7.88 |
| 40 minutes | 7 h 43 min | 7.72 |
| 50 minutes | 7 h 33 min | 7.55 |
One caveat: on the night clocks fall back for daylight saving, a clock-only answer misleads. The same badge times then span 9 hours 23 minutes of real elapsed time, because the hour from 01:00 to 02:00 happens twice, yet the tool reports 8 hours 23 minutes. That week I add the missing hour by hand and tell the scheduling lead, since the overtime count for the week moves with it.
Elapsed Time for Payroll: Overtime, Timesheet and Time Card Math
Payroll runs on decimals, so the figures you read must be restated before they reach a time card. A tidy time tracking habit prevents payroll hours disputes, and the same figures feed project hours for a manager, billing for freelancers and productivity reviews for a team lead. For project management, the decimal total is easier to add than clock readings.
Minutes to Decimal Hours Chart
Divide minutes by 60 to reach decimal hours: our 8 hours 4 minutes becomes 8 + 4/60, or 8.07 decimal hours.
\(\text{hours} + \frac{\text{minutes}}{60}\)
| Minutes | Fraction of an hour | Decimal value |
|---|
| 6 minutes | 1/10 | 0.10 |
| 15 minutes (quarter hour) | 1/4 | 0.25 |
| 30 minutes (half hour) | 1/2 | 0.50 |
| 35 minutes | 7/12 | 0.58 |
| 50 minutes | 5/6 | 0.83 |
Overtime for Non-Exempt Employees
In the United States, a non-exempt employee paid hourly earns 1.5 times the base rate beyond 40 hours in a workweek under the FLSA, while an exempt employee on a salary does not get that premium. The federal minimum wage is $7.25 per hour, though many states set more, so check the rate behind your wages. The employee below logged five days:
| Day | Start | End | Break (min) | Net hours |
|---|
| Monday | 08:47 | 17:26 | 35 | 8.07 |
| Tuesday | 09:02 | 18:10 | 30 | 8.63 |
| Wednesday | 08:30 | 17:05 | 30 | 8.08 |
| Thursday | 07:55 | 18:20 | 45 | 9.67 |
| Friday | 08:10 | 16:40 | 30 | 8.00 |
| Total for 5 days | | | | 42.45 |
| Overtime above 40 | | | | 2.45 |
The week adds up to 2,547 minutes, so the employee crosses 40 hours and that employee earns the premium on 2.45 hours.
Work Hours Calculator vs Billable Hours
A tool that totals work hours counts every minute you were on the clock, whereas billable time covers only what a client pays for. Strip internal meetings out before you invoice.
Time Between Two Dates, Calendar Days and Holidays
When a span runs for weeks instead of hours, switch from a clock to a calendar count. The Gregorian calendar gives most months 30 or 31 days, February 28, and 29 in a leap year, so a month is never a fixed number of days. A date calculator answers in calendar days and holidays, while a clock duration answers in hours and seconds.
Days Between Dates and Leap Years
To find days between dates, count the days left in the first month, add every full month, then add the days in the last month. Missing the 29th of February is the usual slip. Business counts also remove weekends and federal holidays, since offices close on those holidays.
Time Zone and Daylight Saving Changes
Readings from two cities need a time zone offset before you subtract, and daylight saving can add or remove an hour. Convert both entries to one reference first, then work out a flight duration or a call across time zones. A countdown to a deadline or a Pomodoro cycle uses the same arithmetic.
Tips and Limits for Hours Between Times
The tool is reliable when the inputs are. Round only at the very end, keep seconds when precision matters, and recheck any entry that produces a surprise. Good scheduling depends on that accuracy.
Negative Result and Input Validation
Minutes and seconds must stay between 0 and 59, so input validation rejects 75 minutes; write 1 hour 15 minutes instead. A subtraction entered in the wrong order shows a negative answer, which tells you to swap the two durations.
Study, Travel and Event Planning
Students log study blocks, a travel plan needs layover lengths, and an event organiser times each session. Everyday planning also covers an appointment slot, a cooking timer or racing laps, all of which are plain duration sums. Check out our Date Calculator as well.