Time Calculator

Time Calculator

Add or subtract two durations, or find the exact time difference between two clock times.

Result

–
–

What is a time calculator?

A time calculator helps you add or subtract durations (days, hours, minutes, seconds) and find the exact elapsed time between two clock times. It is useful for shift planning, travel time, study schedules, work hours and project timelines. Unlike a date calculator, which works with calendar dates, this tool works with time of day and durations.

How to use this time calculator

Choose a mode first. In "Add / Subtract Durations" mode, enter each duration in days, hours, minutes and seconds, pick "Add durations" or "Subtract second from first", then click "Calculate Time". In "Difference Between Two Times" mode, pick a start time and an end time, then click "Calculate Time". Empty duration fields count as zero, so you can leave the days or seconds field blank when you do not need it.

Worked examples

Adding two durations. Add 2 days, 5 hours and 30 minutes to 1 day, 2 hours and 45 minutes. The minutes add to 75, which carries over as 1 hour and 15 minutes, so the result is 3 days, 8 hours, 15 minutes, 0 seconds.

Subtracting two durations. Subtract 1 day, 2 hours and 45 minutes from 2 days, 5 hours and 30 minutes. The result is 1 day, 2 hours and 45 minutes.

Difference between two clock times. From 09:00 to 17:30 is 8 hours, 30 minutes. The calculator notes that this is the elapsed time between the two clock times.

Crossing midnight. From 22:00 to 02:00 the end time is earlier than the start time, so the calculator treats the end time as falling on the next day and returns 4 hours, 0 minutes, with a note that the period crosses midnight.

A negative result. Subtract 5 hours from 2 hours and the result is negative: -3 hours, 0 minutes, 0 seconds, with the note "Second duration is larger than the first, so the result is negative."

How the calculation works

In duration mode, each duration is converted to seconds: 1 day is 86,400 seconds, 1 hour is 3,600 seconds and 1 minute is 60 seconds. The two totals are added or subtracted, and the result is converted back into days, hours, minutes and seconds, carrying any overflow (for example, 75 minutes becomes 1 hour and 15 minutes). In difference mode, each clock time is converted to minutes since midnight and the start value is subtracted from the end value; if the end time is earlier than the start time, 1,440 minutes (24 hours) are added first, which is how overnight periods are handled.

Common mistakes and limitations

The two modes answer different questions, so picking the wrong one is the most common mistake: use duration mode to combine lengths of time, and difference mode to measure the gap between two clock times. Difference mode returns hours and minutes only, never days or seconds, and it assumes the end time falls within 24 hours of the start time. The calculator works with clock times, not calendar dates, so it cannot span several days in difference mode, and it does not adjust for time zones or daylight saving changes. For dates, use a date calculator instead.

Frequently asked questions

Can I add durations longer than 24 hours? Yes. Use the days field for anything over a day, and the result is normalised back into days, hours, minutes and seconds.

What happens if the second duration is larger? Subtracting a larger duration from a smaller one gives a negative result, with a note explaining that the second duration is larger than the first.

Does the difference mode handle overnight periods? Yes. If the end time is earlier than the start time, the calculator treats the end time as falling on the next day and says so in the note.

Does the difference mode include seconds? No. Difference mode works with clock times in hours and minutes only. Use duration mode when seconds matter.

Can I add more than two durations? Not in one step. Add the first two durations, then use that result as the first duration for the next addition.