Use this Time Calculator to find elapsed time, add or subtract a duration, or total multiple time entries in one place.
Advanced options
How to use our Time Calculator
- Choose What do you want to calculate: Time between, Add or subtract, or Sum entries.
- Pick Calculation basis: use Date and time for full timestamps or Time only for clock-only math.
- Enter the needed fields: Start date, Start time, End date, End time, the Operation, the duration fields, or Time entries (one per line as hh:mm or h:mm:ss).
- Open Advanced options if needed to set If end time is earlier, treat it as next day, change Output style, or use Round displayed decimal hours to nearest minute.
- Click Calculate, then sanity-check the answer: make sure the Result matches your situation, and compare it with Decimal hours, Total minutes, or Total seconds if you need one exact unit.

Definitions
Result: The main answer for your chosen mode. It may be an elapsed duration, a new time, or a total duration.
Calculation basis: The type of math used. Date and time uses calendar dates plus clock times. Time only uses clock times without dates.
Duration: Elapsed time, such as 2 hours 30 minutes. A duration is not a clock reading.
Decimal hours: The same duration written as total hours in decimal form, such as 2.5 hours instead of 2 hours 30 minutes.
Total minutes: The full result converted into minutes only.
Total seconds: The full result converted into seconds only.
Clock note: A short explanation shown when rollover, overnight timing, or a negative result needs clarification.
Common mistakes and quick fixes
Mistake: Entering a duration in Start time or End time instead of using the duration fields.
Fix: Use Duration hours (hours) , Duration minutes (minutes) , and Duration seconds (seconds) for lengths of time. Start time and End time are clock readings.
Mistake: Using Time only when the time span crosses different dates and expecting exact calendar elapsed time.
Fix: Switch Calculation basis to Date and time and fill in Start date and End date .
Mistake: Getting a confusing negative or short overnight result in Time between .
Fix: In Advanced options , turn on If end time is earlier, treat it as next day when the End time is after midnight.
Mistake: Typing clock times like 8:30 PM into Time entries (one per line as hh:mm or h:mm:ss) .
Fix: Enter each line as a duration such as 1:15, 0:45, or 2:30:15. In Sum entries , each line is length of time, not a clock time.
Mistake: Expecting Decimal hours to always match hours and minutes exactly by eye.
Fix: Remember that 30 minutes is 0.5 hours and 15 minutes is 0.25 hours. If you want a different view, change Output style or check Total minutes .
Mistake: Forgetting that subtracting in Add or subtract can cross midnight.
Fix: Read the Clock note under the result. It explains next-day or previous-day rollover when the new clock time moves across midnight.
Limitations & Key Assumptions / Boundary Conditions
- Time only does not know real calendar dates. It uses clock math only, so use Date and time when the exact date matters.
- The option If end time is earlier, treat it as next day changes how overnight Time between results are interpreted. If it is off, an earlier end time can produce a negative duration.
- For Date and time, results depend on the local date-time values entered. Real-world civil-time effects such as daylight saving transitions can make elapsed time differ from simple 24-hour assumptions.
- In Sum entries, each line must be a duration in hh:mm or h:mm:ss style. Clock times with AM/PM are not valid there.
- Duration fields can normalize larger values, but you should still enter values carefully so the result matches what you intended.
- Round displayed decimal hours to nearest minute changes only the displayed decimal-hours value. The underlying calculation still uses seconds.
Methodology
How the calculator works
This calculator turns time inputs into seconds first, does the math, and then converts the answer back into a readable result. That makes carry and borrow steps clear, especially when minutes or seconds pass 60.
total_seconds = hours*3600 + minutes*60 + seconds
If you choose Time between with Date and time, the calculator compares the full start and end timestamps.
elapsed_seconds = end_timestamp - start_timestamp
If you choose Time between with Time only, it compares seconds after midnight. If the end clock time is earlier and next-day rollover is on, one full day is added.
elapsed_seconds = end_clock_seconds - start_clock_seconds
if allow_next_day and elapsed_seconds < 0, elapsed_seconds = elapsed_seconds + 86400
If you choose Add or subtract, the calculator converts the duration to seconds and adds or subtracts it from the starting clock time or starting date-time.
result_seconds = base_timestamp_or_clock + sign*duration_seconds
If you choose Sum entries, each line is parsed as a duration and all lines are added.
sum_seconds = sum(entry_i_seconds)
For mixed-unit output, the calculator keeps the sign separately and breaks the absolute value into days, hours, minutes, and seconds.
days = floor(abs(total_seconds)/86400)
hours = floor((abs(total_seconds)%86400)/3600)
minutes = floor((abs(total_seconds)%3600)/60)
seconds = abs(total_seconds)%60
Decimal hours are computed from total seconds.
decimal_hours = total_seconds / 3600
Mini example
Example 1: from 9:00 AM to 5:
30 PM on the same day, the elapsed time is 8 hours 30 minutes. In seconds, that is 8*3600 + 30*60 = 30,600 seconds. Decimal hours are 30,600 / 3600 = 8.5.
Example 2: in Time only, 10:15 PM to 1:45 AM gives a negative raw difference at first. With next-day rollover on, the calculator adds 86,400 seconds, giving 3 hours 30 minutes.
Interpretation tips
A positive duration means the end is later, the added amount moves forward, or the total is above zero. A negative result usually means you subtracted more time than the starting clock value or that an end time came before a start time without rollover.
Assumptions used
The calculator uses exact unit conversions of 60 seconds per minute, 3,600 seconds per hour, and 86,400 seconds per day for clock arithmetic. Elapsed time means the amount of time that passes between a start and an end [1].
For date-time cases, real local timestamps matter. Around daylight saving changes, actual elapsed time can differ from a simple count of 24-hour days.