Time Calculator

Duration (hours:minutes:seconds)

4:15:00

Total seconds

15,300 seconds

All results
Calculator inputs
?

Durations are quantities; dated mode shifts nominal calendar fields without a location, time zone, DST or leap-second model.

?

Combine first ± second duration, or shift the starting date by ± the first duration.

First duration
?

Whole days; blank means zero. Hours are allowed to exceed 23; one fixed duration day equals 24 hours.

?

Whole hours; blank means zero. Hours are allowed to exceed 23; one fixed duration day equals 24 hours.

?

Whole minutes; blank means zero. Minutes and seconds range from 0 to 59; carry whole extra hours into the hours field.

?

Whole seconds; blank means zero. Minutes and seconds range from 0 to 59; carry whole extra hours into the hours field.

Second duration
?

Whole days; blank means zero. Hours are allowed to exceed 23; one fixed duration day equals 24 hours.

?

Whole hours; blank means zero. Hours are allowed to exceed 23; one fixed duration day equals 24 hours.

?

Whole minutes; blank means zero. Minutes and seconds range from 0 to 59; carry whole extra hours into the hours field.

?

Whole seconds; blank means zero. Minutes and seconds range from 0 to 59; carry whole extra hours into the hours field.

How the signed time calculation is assembled

Signed duration quantities, not clock-face positions. Expression points follow entry order; the chart does not create timestamps or a timezone model.

First duration5,400 seconds
Add second duration9,900 seconds

Time calculation, one step at a time

Time calculation, one step at a time
StepSigned secondsRunning seconds
First duration5,4005,400
Add second duration9,90015,300

The same duration in different units

The same duration in different units
RepresentationValue
Signed normalized duration4:15:00
Whole days + clock remainder0d 04:15:00
Fixed 24-hour days0.18
Decimal hours4.25
Decimal minutes255
Seconds15,300
Milliseconds15,300,000

Fixed time units versus calendar units

Fixed time units versus calendar units
UnitMeaning here
Millisecond0.001 second
Minute60 seconds
Hour60 minutes = 3600 seconds
Duration day24 hours = 86400 seconds
Week7 fixed days = 168 hours
Calendar month28, 29, 30 or 31 dates; not accepted as a fixed duration
Calendar year365 or 366 dates; use a date calculation for calendar years

How to use the Time Calculator

Add or subtract durations, evaluate multi-term time expressions, or shift a date and time. See signed totals, exact conversions and step-by-step working.

  1. 1. Enter your inputs

    Start with Time operation, First duration days, First duration hours, First duration minutes. Use the units shown beside each field and open the field help when you need its assumptions.

  2. 2. Read the results

    Results update as you enter valid values. Review Duration (hours:minutes:seconds), Total seconds, Decimal hours. Keep the entered units and settings consistent when comparing scenarios.

  3. 3. Check the calculation

    Gregorian years 0001–9999 for dated results. At most 500 expression terms and an exact safe-integer millisecond total. Calendar months/years are intentionally not fixed durations.

    See the worked example and method

Understanding the Time Calculator: uses, inputs and results

The Time Calculator normalizes additions and subtractions of durations into hours, minutes and seconds.

Am I adding durations or moving a clock time on a calendar?

A Time Calculator is most useful when the quantities and the operation are explicit. Recorded task lengths can be added as durations; a starting date/time can be shifted by a duration; a multi-term expression can show a running total.

Those operations should not silently acquire time-zone assumptions. A fixed day means 24 hours here, while a calendar date in a real location may cross a clock change.

The common-unit step prevents carrying mistakes

Converting to integer milliseconds before combining values handles minute/second carry and negative results without treating H:MM:SS as a decimal number.

Choose the tool that matches the question

Use Hours for the interval between clocks, Date for calendar-day/month operations, and Time Zone for location-dependent instants. Keeping those distinctions visible makes the result easier to trust.

Further reading: BIPM: International System of Units

What do the Time Calculator inputs mean?

Time operation
Durations are quantities; dated mode shifts nominal calendar fields without a location, time zone, DST or leap-second model.
Starting date and time
Gregorian calendar years 0001–9999. This is a wall-clock value, not an instant in a named time zone. This field applies when Time operation is set to Add / subtract from a date.
First duration days
Whole days; blank means zero. Hours are allowed to exceed 23; one fixed duration day equals 24 hours. This field applies when Time operation is set to Add / subtract two durations or Add / subtract from a date.
First duration hours
Whole hours; blank means zero. Hours are allowed to exceed 23; one fixed duration day equals 24 hours. This field applies when Time operation is set to Add / subtract two durations or Add / subtract from a date.
First duration minutes
Whole minutes; blank means zero. Minutes and seconds range from 0 to 59; carry whole extra hours into the hours field. This field applies when Time operation is set to Add / subtract two durations or Add / subtract from a date.
First duration seconds
Whole seconds; blank means zero. Minutes and seconds range from 0 to 59; carry whole extra hours into the hours field. This field applies when Time operation is set to Add / subtract two durations or Add / subtract from a date.
Operation
Combine first ± second duration, or shift the starting date by ± the first duration. This field applies when Time operation is set to Add / subtract two durations or Add / subtract from a date.
Second duration days
Whole days; blank means zero. Hours are allowed to exceed 23; one fixed duration day equals 24 hours. This field applies when Time operation is set to Add / subtract two durations.
Second duration hours
Whole hours; blank means zero. Hours are allowed to exceed 23; one fixed duration day equals 24 hours. This field applies when Time operation is set to Add / subtract two durations.
Second duration minutes
Whole minutes; blank means zero. Minutes and seconds range from 0 to 59; carry whole extra hours into the hours field. This field applies when Time operation is set to Add / subtract two durations.
Second duration seconds
Whole seconds; blank means zero. Minutes and seconds range from 0 to 59; carry whole extra hours into the hours field. This field applies when Time operation is set to Add / subtract two durations.
Duration expression
Use d, h, m, s or ms and +/−. A sign applies to the following group: −1h 30m means −(1h 30m). No years, months, parentheses, multiplication or JavaScript evaluation. This field applies when Time operation is set to Evaluate a duration expression.

When is the Time Calculator useful?

Total elapsed durations

Enter two duration components and add them to combine stages of a task.

Find a duration difference

Choose subtraction to compare durations. These are elapsed quantities rather than time-zone-aware clock readings.

Time Calculator: a practical reference

The fixed “Legacy sum” example on this page produces the results below. It illustrates the stated model; your live results above use your current inputs.

Time operation
Add / subtract two durations
First duration days
0
First duration hours
1
Duration (hours:minutes:seconds)
4:15:00
Total seconds
15,300 seconds
Review the example inputs and calculation

Use the result in context

Gregorian years 0001–9999 for dated results. At most 500 expression terms and an exact safe-integer millisecond total. Calendar months/years are intentionally not fixed durations.

Try the Time Calculator·Read the subject guide·Explore a related calculator

Worked example: Time Calculator

Legacy sum. This fixed reference example shows one complete scenario; the interactive results above use your current inputs.

View the example inputs
Time operation
Add / subtract two durations
First duration days
0
First duration hours
1
First duration minutes
30
First duration seconds
0
Operation
Add
Second duration days
0
Second duration hours
2
Second duration minutes
45
Second duration seconds
0
Calculated results for the fixed example
Calculated quantityExample result
Duration (hours:minutes:seconds)4:15:00
Total seconds15,300 seconds
Decimal hours4.25 hours

Time Calculator: keep durations, clock times and dates distinct

How do I add hours and minutes without mixing them with decimals?

Minutes use a base of 60, so adding a written clock-style value is different from adding decimal numbers. One hour 50 minutes plus two hours 25 minutes is four hours 15 minutes: the 75 accumulated minutes carry one hour and leave 15 minutes.

The Time Calculator first converts each duration to a common unit, performs the signed operation and normalizes the answer. The default one hour 30 minutes plus two hours 45 minutes equals 4:15:00, or 4.25 decimal hours. It does not wrap the total back to a 24-hour clock.

What does a day mean in a duration calculation?

A duration day in this tool is exactly 24 hours. Entering one day and three hours therefore means 27 hours. That is different from saying “the same local clock time tomorrow” in a place where daylight-saving time changes the actual elapsed interval.

Calendar months and years are not accepted as fixed duration units. They contain different numbers of dates, and choosing an average would answer a different question. Use the Date Calculator when the intended operation is a calendar month, year or working-day adjustment.

BIPM: International System of Units

Why does subtracting time give a negative answer?

A negative duration says that the second quantity is larger than the first. For 1:30:00 − 2:45:00, the result is −1:15:00. The leading minus applies to the entire duration; it does not mean negative hours followed by positive minutes.

Days and clock remainders follow the same sign convention. The conversion table gives total seconds, minutes and decimal hours so you can check the direction and magnitude without guessing how a minus sign applies to each field. A zero result has no negative sign.

Can I add several times in one expression?

Expression mode accepts quantities followed by d, h, m, s or ms and only addition/subtraction. For example, 2h 20m + 45m − 10m equals 2h 55m. The running-total table shows each term, making an omitted unit or an unintended sign easier to spot.

A sign applies to its group until the next operator: −1h 30m means −(1h 30m), whereas −1h + 30m means −30 minutes. Decimal terms have at most three places and must resolve to whole milliseconds. The parser does not execute code, accept parentheses or turn a bare number into an assumed unit.

What time will it be after adding a duration to a date?

Dated mode shifts the entered Gregorian wall-clock fields. Starting at 2024-12-31 23:30 and adding one hour 30 minutes produces 2025-01-01 01:00. Valid leap dates and month/year carry are handled as calendar fields.

No location or UTC offset is supplied, so this is not a prediction of actual elapsed time through a daylight-saving transition. To reason about named locations and offset changes, use a time-zone-aware calculation. A precise-looking timestamp does not supply a time zone that was never entered.

When is a Time Calculator useful?

Use it for adding recorded task durations, combining media lengths, checking an interval subtraction, converting an H:MM:SS result into decimal hours, or moving a nominal schedule by a stated duration. Keep a clock reading such as 14:30 separate from an elapsed quantity such as 14 hours 30 minutes.

If the question is “how long did a shift last?”, the Hours Calculator asks for start/end clocks or dates and a break. If the question is “what do these durations add to?”, this page keeps the quantities and signed working visible. Neither page automatically applies payroll or business-day rules.

Formula and calculation method

Two-duration total seconds = days × 86400 + hours × 3600 + minutes × 60 + seconds, combined using the chosen sign. Normalized hours do not wrap at 24.

Expression terms are converted to exact integer milliseconds and accumulated in order. A group sign continues until the next + or −. Decimal term values have at most three decimal places and must resolve to whole milliseconds.

Dated arithmetic uses proleptic Gregorian calendar fields. Each duration day is exactly 24 hours. Time zones, daylight-saving changes and leap seconds are not modeled.

Decimal hours = total seconds / 3600. 1:30:00 is 1.5 hours, not 1.30. A single leading minus applies to the whole normalized duration.

Scope and Limitations

  • Gregorian years 0001–9999 for dated results. At most 500 expression terms and an exact safe-integer millisecond total. Calendar months/years are intentionally not fixed durations.

Reference Sources

Frequently asked questions

Is 1 hour 30 minutes equal to 1.30 hours?

No. It is 1 + 30/60 = 1.5 decimal hours. H:MM:SS notation and decimal hours use different place values.

Can the total exceed 24 hours?

Yes. Durations do not wrap at midnight. The page shows total hours and a separate fixed-day/remainder representation.

What happens if a duration field is blank?

In two-duration and dated-shift modes, blank numeric duration components mean zero. A blank expression is invalid because it contains no duration terms.

Does dated mode account for daylight saving time?

No. It shifts nominal Gregorian wall-clock fields without a named zone or offset. Use a time-zone-aware calculation for actual instants.

Can I enter months, years or parentheses in an expression?

No. The expression grammar accepts d, h, m, s and ms with +/−. Months/years are variable calendar units, and parentheses are outside this parser.