Skip to content

Time Calculator

Add, subtract, and calculate time in days, hours, minutes, and seconds. Includes time expression parser and date offset calculator.

Add or subtract two time values. Leave fields blank for 0.

How Time Arithmetic Works

Time uses a mixed-radix system: 60 seconds per minute, 60 minutes per hour, and 24 hours per day. Adding and subtracting requires carrying and borrowing across these boundaries, unlike base-10 math.

Three Calculators

  • Add / Subtract Time: Combine two time durations. Enter days, hours, minutes, seconds for each and choose add or subtract.
  • Time from Date: Start with a specific date and time, then add or subtract a duration to get the resulting date. Useful for deadline calculations and scheduling.
  • Time Expression: Type a freeform expression like 1d 2h 3m + 4h 5s - 2030s and get the evaluated result.

Common Units of Time

Like other numbers, time can be added or subtracted. However, due to how time is defined, there are differences in how calculations must be computed when compared to decimal numbers. The following table shows some common units of time.

UnitDefinition
millennium1,000 years
century100 years
decade10 years
year (average)365.242 days or 12 months
common year365 days or 12 months
leap year366 days or 12 months
quarter3 months
month28–31 days
Jan., Mar., May, Jul., Aug., Oct., Dec.—31 days
Apr., Jun., Sep., Nov.—30 days
Feb.—28 days for a common year and 29 days for a leap year
week7 days
day24 hours or 1,440 minutes or 86,400 seconds
hour60 minutes or 3,600 seconds
minute60 seconds
secondbase unit
millisecond10−3 second
microsecond10−6 second
nanosecond10−9 second
picosecond10−12 second

Practical Uses

  • Project planning: Add estimated task durations to find total project time
  • Travel: Calculate arrival time by adding flight duration to departure time across time zones
  • Cooking: Sum multiple prep and cook times for meal planning
  • Exercise: Track total workout duration across multiple sets and rest periods
  • Work hours: Add up daily time entries for weekly or monthly totals

Time Expression Syntax

The expression parser accepts values with unit suffixes:

  • d — days
  • h — hours
  • m — minutes
  • s — seconds

Use + and between terms. Example: 2d 5h + 3h 30m - 45m 20s

Related Calculators

Frequently Asked Questions

How do I add time values?

Enter days, hours, minutes, and seconds for each value, select Add, and the calculator normalizes the result. For example, 2h 45m + 1h 30m = 4h 15m.

How does the time expression parser work?

Type time values with unit suffixes (d, h, m, s) separated by + or -. Example: "1d 2h 3m + 4h 30m - 45s" adds and subtracts all terms and returns the total.

Can I subtract a larger time from a smaller one?

Yes. The result will be shown as negative. For example, 1h 0m - 2h 30m = -1h 30m.

How do I add time to a specific date?

Use the "Time from Date" tab. Set your start date and time, choose Add or Subtract, enter the duration, and the result shows the new date and time.

What units are supported?

Days (d), hours (h), minutes (m), and seconds (s). Results are automatically normalized — e.g., 90 minutes becomes 1h 30m.

How many seconds in a day?

There are 86,400 seconds in a day (24 hours × 60 minutes × 60 seconds).