Time Calculator – Add, Subtract & Calculate Time Easily

Time Calculator

Time Calculator

Add or subtract two time values expressed in days, hours, minutes, and seconds. Any field left blank is treated as zero. The result is automatically reduced to the simplest form showing days, hours, minutes, and seconds.

Operation:

Add or Subtract Time from a Date

Add or subtract a duration (days, hours, minutes, seconds) from a specific starting date and time to find the resulting date and time. Use the “Now” button to set the start time to the current moment.

Operation:

Time Calculator in Expression

Type a time expression using the letters d (days), h (hours), m (minutes), and s (seconds). Use + and – to add or subtract multiple time values in a single expression. Any number of terms can be combined.

Format: Use d for days, h for hours, m for minutes, s for seconds.
Example: 1d 2h 30m + 4h 15m 20s - 45m   or   3h 20m + 90m - 1h

How Time Addition and Subtraction Works

Unlike ordinary decimal arithmetic, time uses a mixed-base numeral system. Seconds count up to 60 before carrying over into minutes, minutes count up to 60 before carrying into hours, and hours count up to 24 before carrying into days. This means that adding or subtracting time requires carrying and borrowing across these different bases — a process similar to column arithmetic but with different thresholds at each column.

60 seconds = 1 minute
60 minutes = 1 hour
24 hours = 1 day
7 days = 1 week
Example: 2h 45m + 1h 30m = 3h 75m = 4h 15m (because 75 minutes = 1 hour 15 minutes)

Step-by-Step: Adding Two Time Values

To add two time values, add each unit separately (seconds, then minutes, then hours, then days), and then convert any value that exceeds the base of its unit. This process is called carrying.

Step 1: Add the seconds together. If the result is 60 or more, subtract 60 and carry 1 to minutes.
Step 2: Add the minutes together (including any carried minute). If the result is 60 or more, subtract 60 and carry 1 to hours.
Step 3: Add the hours together (including any carried hour). If the result is 24 or more, subtract 24 and carry 1 to days.
Step 4: Add the days together (including any carried day). The result is the final answer.
Example: 1d 22h 50m 40s + 0d 2h 20m 35s
Seconds: 40 + 35 = 75 → 15s carry 1m  |  Minutes: 50 + 20 + 1 = 71 → 11m carry 1h  |  Hours: 22 + 2 + 1 = 25 → 1h carry 1d  |  Days: 1 + 0 + 1 = 2d
Result: 2d 1h 11m 15s

Step-by-Step: Subtracting Two Time Values

To subtract one time value from another, subtract each unit separately starting from seconds. If a unit in the first value is smaller than the corresponding unit in the second, borrow from the next higher unit. This is the same principle as column subtraction with borrowing.

Step 1: If the first seconds are smaller than the second, borrow 60 seconds from the minutes column.
Step 2: If the first minutes (after borrowing) are smaller than the second, borrow 60 minutes from the hours column.
Step 3: If the first hours (after borrowing) are smaller than the second, borrow 24 hours from the days column.
Step 4: Subtract each adjusted unit to get the final result.
Example: 3d 4h 15m 10s – 1d 6h 30m 45s
Seconds: 10 – 45 → borrow: 70 – 45 = 25s  |  Minutes: 14 – 30 → borrow: 74 – 30 = 44m  |  Hours: 3 – 6 → borrow: 27 – 6 = 21h  |  Days: 2 – 1 = 1d
Result: 1d 21h 44m 25s

Common Units of Time

UnitDefinition
Millennium1,000 years
Century100 years
Decade10 years
Year (average)365.242 days or 12 months
Common year365 days
Leap year366 days (February has 29 days)
Quarter3 months
Month28 to 31 days depending on the month
Week7 days
Day24 hours = 1,440 minutes = 86,400 seconds
Hour60 minutes = 3,600 seconds
Minute60 seconds
SecondThe SI base unit of time
Millisecond1/1,000 of a second (10-3)
Microsecond1/1,000,000 of a second (10-6)
Nanosecond1/1,000,000,000 of a second (10-9)

The Sexagesimal System and Why We Use Base 60 for Time

The division of time into units of 60 is not arbitrary. It originates from the ancient Sumerian civilization around the 3rd millennium BC and was later adopted by the Babylonians. The number 60 was chosen because it is a superior highly composite number — it has an unusually large number of divisors relative to its size. The number 60 can be divided evenly by 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, and 60. This makes fractional calculations far simpler: one-third of an hour is exactly 20 minutes, one-quarter is exactly 15 minutes, and one-fifth is exactly 12 minutes — all whole numbers with no remainders.

This system, known as the sexagesimal numeral system (from the Latin sexaginta, meaning sixty), is still in use today not only for measuring time but also for measuring angles and geographic coordinates, where a degree is divided into 60 minutes of arc and each minute is divided into 60 seconds of arc.

The Origin of the 24-Hour Day

The division of the day into 24 hours originated in ancient Egypt. Egyptian astronomers divided the period between sunrise and sunset into 12 equal parts using sundials. They separately identified 12 star patterns — called decans — to track the 12 divisions of night. The combination of these two 12-part periods created the 24-hour day that we use today.

However, the early Egyptian hours were not of equal length — summer hours were longer than winter hours because the period of daylight itself varied. It was not until around 127 BC that the Greek astronomer Hipparchus proposed dividing the day into 24 equal hours based on the length of daylight at the equinox. Fixed-length hours only became standard in everyday use during the 14th century with the spread of mechanical clocks across Europe.

Philosophical Concepts of Time

Aristotle (384-322 BC) defined time as a number of movement with respect to before and after. In his view, time cannot exist without change or motion — it is a measurement of change rather than a thing in itself. He believed time was infinite and continuous.

Isaac Newton argued that absolute time exists and flows at a constant rate regardless of any external influence. He called this concept “duration” and stated that it could only be understood mathematically. Relative time, in Newton’s framework, is what we actually perceive — a measurement of duration through the motion of visible objects.

Gottfried Leibniz disagreed with Newton and argued that time has no meaning apart from the objects and events that exist within it. For Leibniz, time is purely relational — it is simply the order in which events occur, not an independent container in which events take place.

Albert Einstein transformed the scientific understanding of time with his theory of relativity. Einstein demonstrated that time is not fixed but relative to the observer’s frame of reference, particularly their velocity. At speeds approaching the speed of light, time passes more slowly — a phenomenon known as time dilation. Einstein unified space and time into a single four-dimensional framework called spacetime, fundamentally changing how physics describes the universe.

How We Measure Time Today

Modern timekeeping relies on two principal instruments: the calendar for measuring long periods and the clock for measuring shorter durations. Both are based on the sexagesimal system inherited from Babylonian astronomy.

The most accurate timekeeping devices in use today are atomic clocks. These instruments use the resonance frequency of atoms — most commonly cesium-133 — to measure the passage of time with extraordinary precision. The International System of Units (SI) defines the second as exactly 9,192,631,770 oscillations of a cesium-133 atom in its ground state. Atomic clocks are so accurate that they would neither gain nor lose a second over tens of millions of years. They form the basis for Coordinated Universal Time (UTC), which synchronizes clocks worldwide.

Before atomic clocks, the most accurate timekeeper for centuries was the pendulum clock, invented by Christiaan Huygens in 1656. Huygens refined his design to achieve errors of fewer than 10 seconds per day — a remarkable achievement for its era and far more accurate than any previous mechanical clock.

Time Zones and Coordinated Universal Time

The Earth is divided into 24 primary time zones, each approximately 15 degrees of longitude wide (since 360 degrees / 24 hours = 15 degrees per hour). Each time zone is offset from Coordinated Universal Time (UTC) by a whole or half number of hours. For example, Eastern Standard Time in the United States is UTC-5, meaning it is 5 hours behind UTC, while India Standard Time is UTC+5:30, incorporating a half-hour offset.

UTC itself replaced Greenwich Mean Time (GMT) as the world’s time standard in 1972. It is maintained by a network of atomic clocks around the world and coordinated by the International Bureau of Weights and Measures (BIPM). Occasional leap seconds are added to UTC to account for slight variations in the Earth’s rotation, keeping it aligned with astronomical time.