Time Duration Calculator
This time duration calculator finds the hours and minutes between two clock times, with an optional number of days apart. You can also add or subtract a duration and see the resulting clock time and signed day offset.
By Dr. Hassan Khames EliwaLast updated
Result
- Total minutes
- 510
- Decimal hours
- 8.5
How it works
Elapsed time and clock arithmetic are different jobs
Choose elapsed time when you know a start and an end. Choose add duration or subtract duration when you know one clock time and an amount of time to move. Only the fields relevant to the selected mode are used; switching modes does not make a hidden end-time field affect an addition.
Clock entries use the 24-hour HH:MM format. The calculation converts each clock time to minutes since midnight. Working with whole minutes avoids ambiguous fractional-hour inputs and makes midnight rollover straightforward.
Crossing midnight
In elapsed mode, days apart is the number of calendar-date boundaries separating the start date and end date. If it is zero and the ending clock time is earlier than the start, the calculator assumes a single overnight interval. For example, 22:00 to 06:00 with zero days apart means eight hours, not negative sixteen hours.
If both clock times are identical and days apart is zero, the result is zero. Set days apart to one for a full 24 hours. For longer jobs, enter the actual date separation instead of adding another overnight adjustment yourself. With explicit positive days apart, the calculator applies only the stated days and clock difference.
Adding and subtracting durations
Duration hours must be a nonnegative whole number; minutes must be a whole number from zero through 59. Larger minute amounts should be normalized into hours and minutes before entry. The result wraps to a clock reading between 00:00 and 23:59, while the day offset preserves the information that would otherwise be lost.
An offset of 1 means the next day relative to the starting date. An offset of −1 means the preceding day. Subtracting two hours from 01:00 therefore returns 23:00 with a day offset of −1, not an invalid negative clock time.
Scope of the clock model
Every day is treated as 24 hours. There is no date, time zone, daylight-saving transition, leap second, break deduction or payroll rounding policy. This is suitable for timetable arithmetic, not timestamp auditing across time-zone changes.
Worked example
A work session and an overnight check
In elapsed mode, enter 09:15 as the start, 17:45 as the end and 0 days apart. The output is 8 hours, 30 minutes, 510 total minutes and 8.5 decimal hours. A lunch break is not removed automatically; subtract it separately if you need paid working time.
For an overnight session, enter 22:30 to 06:15, again with zero days apart. The earlier end time triggers the single-night convention, giving 7 hours, 45 minutes, 465 minutes and 7.75 decimal hours.
In add mode, start at 23:15 and add 2 hours, 30 minutes. The resulting time is 01:45, with a day offset of 1. Subtracting that same duration from 01:15 gives 22:45 and an offset of −1.
Expert tips
Common mistakes
- Entering 24:00 as a clock time. Use 00:00 and the appropriate day separation. The accepted clock range ends at 23:59.
- Using days apart as a count of full 24-hour blocks. It represents the calendar-date separation; the clock difference is then added or subtracted.
- Assuming local elapsed time across a clock change. A night when clocks move forward or back needs date-aware, time-zone-aware timestamp arithmetic instead.
Frequently asked questions
Does an earlier end time mean tomorrow?
Yes, when days apart is zero. That mode assumes a single overnight interval. With positive days apart, the explicit date separation is used instead.
Can I calculate seconds?
No. Inputs and results use whole minutes. Use another tool when second-level timing or fractional-minute precision matters.
Why is 8 hours 30 minutes shown as 8.5 hours?
Thirty minutes is half of a 60-minute hour. Decimal hours are total minutes divided by 60, not clock minutes written after a decimal point.
Can a duration exceed one day?
Yes. Addition and subtraction accept large whole-hour durations, and elapsed mode accepts explicit days apart. The result retains the corresponding day offset where applicable.
Are lunch breaks deducted?
No. The elapsed interval is uninterrupted clock time. Deduct breaks according to your records and applicable payroll rules.
Related calculators
Related guides
MathPercentages people get wrong: change, difference and pointsThe denominator determines the answer. Learn to distinguish percentage change, symmetric difference and percentage-point movements.14 November 2026 · 7 min read
MathStandard deviation without the jargonThe average tells you the centre. Standard deviation helps describe the spread, provided you know what the data represents.14 November 2026 · 7 min readSources and standards
About the author
Dr. Hassan Khames Eliwa holds a PhD in Construction & Built Environment and has more than 20 years of international project controls experience. He is Director of Eliwa Project Controls Limited in Auckland and founder of PMMilestone.org and PMMilestone.com.
Buy me a coffee