Time Calculator

Add or subtract time values in days, hours, minutes, and seconds with support for complex time expressions. Calculate new dates and times with precision for scheduling and planning.

Time Calculator

This calculator can be used to "add" or "subtract" two time values. Input fields can be left blank, which will be taken as 0 by default.

Day
Hour
Minute
Second
=

Add or Subtract Time from a Date

Use this calculator to add or subtract time (days, hours, minutes, seconds) from a starting time and date. The result will be the new time and date based on the subtracted or added period of time.

Time Calculator in Expression

Use this calculator to add or subtract two or more time values in the form of an expression. An acceptable input has d, h, m, and s following each value, where d means days, h means hours, m means minutes, and s means seconds. The only acceptable operators are + and -. "1d 2h 3m 4s + 4h 5s - 2030s" is an example of a valid expression.

Expression Format

Units: d (days), h (hours), m (minutes), s (seconds)

Operators: + (add), - (subtract)

Examples:

  • 1d 2h 3m 4s
  • 5h + 30m - 15s
  • 2d 12h + 6h 30m - 1h 45m 30s
  • 100s + 2m - 30s

Frequently Asked Questions About Time Calculations