Skip to content
ΣCalcYeti

Add or Subtract Time Calculator

Add or subtract a days-hours-minutes-seconds duration from a 24-hour time and track day rollover.

Content updated August 4, 2026

Starting time — 24-hour clock

Duration

Resulting time
01:16:15
1 day after the reference day
12-hour time
1:16:15 AM
Day offset
+1
Starting time
22:45:30
Duration
0d 02:30:45
Duration in seconds
9,045
Result from reference midnight
90,975 seconds

This is exact elapsed-time arithmetic on a 24-hour clock. The day offset is relative to an unspecified reference day; no calendar date, time zone, daylight-saving transition, leap second, or civil time rule is applied.

Add or subtract an exact duration from a time of day down to the second. The result is normalized to a 24-hour clock and paired with a signed day offset, so crossing midnight never silently loses the date direction.

This calculator performs elapsed-time arithmetic rather than civil-calendar arithmetic. It treats one minute as 60 seconds, one hour as 60 minutes, and one day as 24 hours without applying a time zone, daylight-saving transition, leap second, or actual calendar date.

The Add or Subtract Time formula

Start seconds = 3600h + 60m + s; duration seconds = 86400d + 3600h + 60m + s; result = start ± duration

Day offset = floor(result ÷ 86400) · seconds of day = result − day offset × 86400 · normalize the remainder to HH:MM:SS.

Worked example

Starting at 22:45:30 and adding 2 hours, 30 minutes, and 45 seconds gives 90,975 seconds from reference midnight. That normalizes to 01:16:15 with a day offset of +1.

Assumptions, rounding, and limitations

Assumptions

  • The starting time uses a 24-hour clock with hours 0–23 and minutes and seconds 0–59.
  • A minute is 60 seconds, an hour is 3,600 seconds, and a day is 86,400 seconds.
  • The reference day is abstract and has no calendar date, time zone, daylight-saving rule, or leap-second table.
  • Every input is a whole number and the duration is non-negative before the selected add or subtract operation is applied.

Rounding: No rounding is performed. Inputs are whole seconds and every displayed clock field, day offset, and total-second value is derived with integer arithmetic.

Limitations

  • Supports durations from zero through 1,000,000 days plus 23:59:59.
  • Does not calculate an actual date, weekday, business day, time-zone conversion, daylight-saving transition, leap second, or locale-specific civil-time rule.
  • The 12-hour display is a representation of the same normalized clock time; it does not add date or zone information.

Sources

How clock normalization works

The starting hour, minute, and second are converted to seconds after reference midnight. The duration's days, hours, minutes, and seconds are also reduced to seconds, then added or subtracted as one signed value.

The completed total is divided by 86,400 seconds per day using floor-based normalization. The whole quotient is the signed day offset; the non-negative remainder becomes an hour from 0 through 23, a minute from 0 through 59, and a second from 0 through 59.

Elapsed time is not always civil time

NIST lists the second as the SI unit of time interval and describes the minute, hour, and day relationships used here. Those fixed relationships are appropriate for arithmetic on an abstract clock.

A named local date and time can behave differently around daylight-saving changes, and official timekeeping can account for leap seconds. Use a calendar- and time-zone-aware system when those rules matter.

Frequently asked questions

What does a day offset of +1 mean?

The resulting time is on the next reference day. A negative offset means the result falls before the starting reference day.

Can I subtract past midnight?

Yes. For example, subtracting one hour from 00:30:00 returns 23:30:00 with a day offset of −1.

Can the duration be zero?

Yes. A zero duration preserves the starting time and reports a day offset of 0.

Does this account for daylight-saving time?

No. It uses fixed elapsed-time units and has no date or time zone, so daylight-saving gaps and repeats are outside its scope.

Why are duration hours limited to 23?

Complete 24-hour groups belong in the days field. This keeps the duration normalized while still supporting up to one million days.

Related calculators

Disclaimer: Add or Subtract Time Calculator results are estimates for general information and education only, and are not financial, tax, legal or medical advice. Verify important decisions with a qualified professional.