Time Duration Calculator
Calculate duration between times.
About this tool
Choose a start and an end date to see the duration as days, hours, minutes and seconds, plus the total number of seconds. The order of the dates does not matter; the result is always positive.
How to use
How it works
The total is the elapsed time in seconds, which is then split into whole days, hours, minutes and seconds. Because the inputs are dates, the time of day is midnight, so the breakdown is normally whole days. Convert yourself for other units: days × 24 for hours, × 1,440 for minutes.
total seconds = |end − start| days = floor(seconds ÷ 86,400), then hours, minutes and seconds from the remainder
Worked example
1 to 15 June 2026
- Input
- Start 2026-06-01; end 2026-06-15
- Output
- 14 days, 0 hours, 0 minutes, 0 seconds (1,209,600 seconds)
- Walkthrough
- 14 days × 86,400 seconds in a day = 1,209,600 seconds. In hours that is 14 × 24 = 336.
Limitations
- Date inputs only; for two clock times on the same day use Hours Between Times.
- A daylight-saving change inside the range can make the total an hour short or long.
Questions
How many seconds are there between 1 and 15 June 2026?
How many hours are in 14 days?
Does the order of the dates matter?
How do I get the duration between two clock times?
Features
- Days, hours, minutes, seconds
- Total seconds
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Compound interest introduction
Khan Academy
Core finance math behind interest and loan calculators.
Watch on YouTubePercentage of a whole number
Khan Academy
Percent-of problems for everyday calculator pages.
Watch on YouTube
- Mortgage Formulas
Math is Fun
Amortization formulas that power mortgage-style calculators.
- Financial tools and calculators
Investor.gov
Official US investor education tools for cross-checking money math.