Instant Calculator
Local date-time arithmetic

Time Calculator: Duration, Add or Subtract Time

Calculate the elapsed duration between two local date-times, or add and subtract hours, minutes and seconds from a starting date-time. The result includes HH:MM:SS and total-unit values.

How this calculator treats time

Inputs use your browser's local time zone. If the end is earlier than the start, the calculator shows the absolute difference and flags the order. It does not convert time zones or apply payroll rules.

Calculate time

Time duration and date-time calculator

Time Calculator

Calculate the difference between two times or add/subtract hours and minutes.

Enter two date-times to calculate the duration between them.

How does the time calculator work?

For a duration, the calculator subtracts the start instant from the end instant and displays the absolute number of elapsed seconds. For addition or subtraction, it converts the entered interval to seconds, applies that interval to the base date-time, and then formats the new local date-time.

  1. Choose Time Difference to compare two date-times, or Add/Subtract to move a date-time.
  2. Enter complete local dates and times. Include the next date when a period crosses midnight.
  3. Read the normalized result, then copy the summary or share the configured calculation if needed.

What do the time calculator outputs mean?

Time calculator modes, inputs and outputs
ModeWhat you enterWhat you receive
Time DifferenceStart and end local date-timesAbsolute HH:MM:SS plus total days, hours, minutes and seconds
Add/SubtractBase date-time, direction, hours, minutes and secondsA normalized resulting local date-time

Example: from 22:00 on 1 January to 06:30 on 2 January is 08:30:00, or 30,600 total seconds. The date fields make the midnight boundary explicit.

Local time, daylight saving and calculation limits

Local time and DST

The browser interprets each date-time in its own local time zone. A daylight-saving change can alter the elapsed duration even when the wall-clock labels appear a fixed number of hours apart.

Use a time-zone conversion service when the start and end belong to different named zones.

What is not included

The calculator does not deduct breaks, round punches, calculate overtime, count business hours, or decide payroll eligibility. It also does not model leap seconds.

Frequently asked questions about time calculations

How does the time calculator find the duration between two date-times?

The calculator subtracts the start date-time from the end date-time. It shows the absolute elapsed duration in HH:MM:SS and as total days, hours, minutes and seconds. If the end is earlier than the start, the result is still positive and the calculator displays a notice.

What happens when the end time is earlier than the start time?

The calculator shows the absolute difference and marks that the end is earlier. It does not automatically assume that a time-only end value belongs to the next day, so select the correct end date when a duration crosses midnight.

Which time zone does the calculator use?

The date-time fields are interpreted in the browser's local time zone. The calculator does not convert between named time zones such as Asia/Kolkata and America/New_York.

Can daylight saving time change the elapsed duration?

Yes. Because the calculator uses local date-times, a daylight-saving transition can make the elapsed duration differ from the visible clock-hour difference. For example, a local interval spanning a one-hour spring-forward transition can contain one fewer elapsed hour.

How do I add or subtract hours, minutes and seconds?

Choose Add/Subtract, enter a base date-time, select the operation, and enter the interval. The calculator normalizes overflow across minutes, hours, days, months and years and returns the resulting local date-time.

Can I use this time calculator for payroll or timesheets?

The calculator can find a raw elapsed duration, but it does not subtract breaks, apply rounding rules, calculate overtime, or interpret an employer's payroll policy. Review those rules separately before using a result for pay.

Reviewed on . Calculator behavior, examples, metadata and limitations were checked together.

Method and content review: Instant Calculator editorial team.