Time Duration Calculator
Calculate time between two dates, add/subtract hours and minutes, and convert time units. Free calculator for project planning.
Want to learn more?
Learn methods for calculating time durations, differences, and elapsed time between events.
Read the guideFind the Time Between Two Dates
This is a time duration calculator: enter any two dates (or two timestamps) and it returns the exact time between them. The result shows up in two forms simultaneously — the human-readable breakdown ("3 years, 2 months, 17 days") and the raw totals ("1,173 days," "28,152 hours," "1,689,120 minutes"). Use whichever fits your need.
If you came here looking for "how many days between two dates," that is the totals strip. If you came looking for "time difference calculator" or "elapsed time between two times," that is the same answer in finer units. The tool is one calculation engine wearing several names.
When You Need a Date Duration Calculator
Project Management
Gantt charts and timelines live and die on accurate duration math. Knowing that a 45-business-day deliverable starting March 3 lands on May 5 — not May 17, which is the answer if you forget weekends — is the difference between a client meeting and a missed deadline. Use the business-days toggle for any work-time calculation; use raw days for any external-facing date commitment.
HR and Payroll
Time worked, leave accrued, tenure for vesting cliffs, anniversary bonuses, probation period ends — all of these are date-duration problems. The calculator does the unambiguous math; your HR policy decides whether to round to the nearest day, prorate by hours, or count business days only.
Legal Contracts
Notice periods, statutes of limitations, lease terms, and contract renewal windows are almost always specified as a duration ("30 days written notice," "two years from the effective date," "180 days after termination"). Enter the trigger date as the start and the duration to find the exact deadline date. Always check the contract language for whether the count is calendar days or business days — they differ by 28% over a typical month.
Personal Milestones and Anniversaries
Wedding anniversaries, sobriety counts, days-since-quit-smoking, days-since-last-incident at a workplace safety board — anything you want to track as a running total. Enter the milestone date as the start and today as the end; check back any day for the updated count.
Days Until an Event
Travel countdowns, exam dates, vacation start, baby due dates, retirement, graduation. The "days until" calculation is just a duration where the end date is in the future. The breakdown tells you the calendar story ("2 months, 14 days"); the totals tell you the countdown number.
Why This Beats Manual Math or a Spreadsheet
Doing date arithmetic by hand is unreliable. Months are 28, 29, 30, or 31 days. Years are 365 or 366. February 29 exists every four years except century years not divisible by 400 (1900: no, 2000: yes, 2100: no). Daylight saving shifts vary by country and have changed historically. Anyone who has tried to add "3 months and 12 days" to a date in their head has gotten it wrong at least once.
A spreadsheet can do it, but the formulas are awkward — =DATEDIF(A1, B1, "d") for days, =NETWORKDAYS(A1, B1) for business days, and a separate computation for the year-month-day breakdown. Spreadsheets also default to whatever locale and date format the file inherited, which is a source of silent off-by-one errors when files move between users. This calculator removes all of that overhead: paste the dates, read the answer.
For one-off calculations, a dedicated tool is faster than opening Excel. For repeated calculations, it is also less error-prone because you can see the inputs and outputs at the same time without clicking through cells.
Common Phrasings This Calculator Handles
- "Days between two dates" — the totals strip, days column.
- "How many days between [date] and [date]" — same, exclusive of the start day.
- "Time between dates" — the full breakdown plus totals in every unit.
- "Calculate duration" — anything from milliseconds (paste timestamps) to decades.
- "Elapsed time" — synonym for duration; identical workflow.
- "Time difference calculator" — pick two times, get the gap.
- "Date difference calculator" — pick two dates, get the gap.
- "How long ago was [date]" — enter the past date as start, today as end.
- "How many weeks between two dates" — divide the total-days result by 7. The calculator shows the integer days; weeks are days ÷ 7.
- "Hours between two times" — enter both with times on the same date for sub-day precision.
All of these are the same underlying calculation: subtract one timestamp from another and present the result in useful units. The tool just gives them one place to live.
Accuracy Notes
The calculator runs entirely in your browser using the standard JavaScript Date API, which is accurate to the millisecond for any date between roughly the year 100,000 BC and 100,000 AD. There is no server round-trip and no logging — your dates never leave your computer. Calculations respect your browser's time zone setting; if you need a different zone (for example, calculating a duration in UTC instead of local time), set your system clock or convert the endpoints to UTC first using a time zone converter.
For dates before 1582 (the Gregorian calendar reform), the calculator uses the proleptic Gregorian calendar — it extrapolates the modern leap-year rule backward. Historians use the Julian calendar for those dates, so durations spanning the reform may differ by up to 10 days from what a historian would compute. For modern dates (1582 onward) the answer is exact.
Time Duration Calculator — Find the Time Between Two Dates
Enter a start date and end date (with optional times) and the calculator returns the exact duration in years, months, days, hours, minutes, and seconds. It also reports the total in each individual unit — useful when you need "how many days between two dates" rather than the broken-down form.
The tool handles add/subtract operations too: pick a starting moment, choose to add or subtract a quantity, and get the resulting date and time. Common operations like "what date is 90 days from today" or "what time will it be 8 hours and 45 minutes from now" are one click.
How to Use This Calculator
- Pick a mode. Duration between two dates (the default) finds the elapsed time between two moments. Add/subtract time shifts a date by a quantity. Working hours counts only business hours between two timestamps.
- Enter the start. Date is required, time is optional. If you leave the time blank, the calculator treats it as 00:00 (midnight) at the start of the day.
- Enter the end. Same rules. End must be after start; if it isn't, the result simply flips sign and shows a negative duration.
- Read the result. The breakdown shows years/months/days/hours/minutes/seconds, and a totals strip shows the same span expressed as total days, total hours, total minutes, and total seconds.
- Toggle business days if you want to exclude Saturdays and Sundays from the day count — useful for SLA, payroll, or project deadline math.
Common Scenarios
Project Deadlines
You committed to a 45-business-day delivery on a contract dated March 3. Enter March 3 as the start, toggle business days, and add 45 — the result is May 5. Now you know which week to start your QA buffer.
Age in Days
A friend turns 10,000 days old at some point. Enter their birthday as the start and today as the end; the totals row shows the exact day count. (Born January 1, 2000 → 10,000 days lands on May 19, 2027.)
Days Until an Event
Enter today as the start and the event date as the end. The result tells you both the calendar breakdown ("2 months, 14 days") and the raw count ("76 days"). Use the raw count for countdown widgets and the breakdown for human-readable copy.
Days Since an Event
Same workflow in reverse. Anniversaries, project kickoffs, last bug-free deploy — anything where you want to say "it has been N days since."
Retirement or Milestone Countdown
A 62-year-old planning to retire at 65 enters their date of birth as the start and a target retirement date as the end. The breakdown answers "how many years, months, and days from now," and the totals answer "how many paychecks" if you divide by your pay cycle.
Contract Durations
Enter the effective date and the termination date. The totals row gives you total days for prorated billing; the breakdown gives you the "X years, Y months" language most contracts use.
Hours Worked
Use add/subtract or duration between two times on the same day for a single shift; toggle working-hours mode for a multi-day timesheet that should ignore weekends and after-hours minutes.
Edge Cases the Calculator Handles
Leap years. February 29 exists in 2000, 2004, 2008, ..., 2024, 2028. A duration of "one year" from Feb 29, 2024 lands on Feb 28, 2025 (non-leap) or Mar 1, 2025 depending on convention — this tool uses the Feb 28 convention, which matches how most legal documents and birthdays are handled. January 1 to December 31, 2025 = 364 days. January 1, 2024 to December 31, 2024 = 365 days (leap year, includes Feb 29).
Daylight saving transitions. In the US, clocks jump forward on the second Sunday of March (losing an hour) and fall back on the first Sunday of November (gaining an hour). A duration spanning March 9, 2025 at 1am to March 9, 2025 at 4am is 2 hours in wall-clock time but 3 hours of elapsed real time. This calculator reports elapsed real time — the unambiguous, physics-based answer.
Time-of-day matters. Jan 1 at 11:59pm to Jan 2 at 12:01am is 2 minutes, not 1 day. If you enter only dates with no times, both are treated as midnight and the result is exactly 1 day. Always include times when sub-day precision matters.
Time zone handling. The calculator runs in your local browser time zone. For cross-zone durations (e.g., a flight from JFK to LHR), convert both endpoints to UTC first, then enter them — or use the world clock tool to do the conversion side-by-side.
Inclusive vs. exclusive endpoints. A duration from Monday to Friday is 4 days (exclusive of the start) or 5 days (inclusive of both endpoints). This tool reports exclusive duration — the standard mathematical definition, and what you want for elapsed time. If you need inclusive counts (e.g., "I'm on vacation Mon through Fri, how many vacation days?"), add 1 to the result.
What "Duration" Actually Means
Duration is the elapsed time between two moments. It is not the number of calendar days touched, not the number of midnights crossed, and not the number of weekdays in the range. It is simply: end-time minus start-time, expressed in whatever units you find useful.
That distinction matters because most off-by-one errors in date math come from confusing duration with one of the other counts. "How many days are between Monday and Wednesday?" can legitimately mean 2 (duration), 3 (inclusive count of named days), or 1 (Tuesday is the only day strictly between them). This calculator always returns duration. If you need a different definition, do the small mental adjustment at the end — but start from an unambiguous number.
Frequently Asked Questions
Common questions about the Time Duration Calculator
The tool offers four modes: Calculate Duration (find time between two dates), Add Time (add days, hours, minutes, seconds to a date), Subtract Time (subtract time from a date), and Convert Units (convert between time units like days to hours). Each mode is designed for specific time calculation needs.
Yes, when calculating duration between two dates, the tool automatically shows both the total calendar duration and the number of business days (excluding weekends). This is helpful for project planning where you need to know actual working days between milestones.
The Recovery Time Objective (RTO) presets help IT and disaster recovery professionals quickly reference common recovery time windows. Presets range from 15 minutes for critical systems to 30 days for compliance requirements, making it easy to calculate deadlines and plan recovery scenarios.
Use the Convert Units mode to enter time in any combination of days, hours, minutes, and seconds. The tool will instantly show the equivalent in all other units. For example, entering 2 days and 12 hours will show the total as 60 hours, 3600 minutes, or 216000 seconds.
Yes, each calculation result includes a copy button that copies the formatted duration or date to your clipboard. This makes it easy to paste results into documents, emails, or other applications without having to manually type the values.
If you enter an end date that is earlier than the start date, the calculator will still compute the duration but will display a warning indicating the dates are reversed. The result will show as a negative duration, which can be useful for understanding time that has already elapsed.
ℹ️ Disclaimer
This tool is provided for informational and educational purposes only. All processing happens entirely in your browser - no data is sent to or stored on our servers. While we strive for accuracy, we make no warranties about the completeness or reliability of results. Use at your own discretion.