Date Calculator

How many days between two dates?

Find the exact number of days between any two dates, or calculate what date it will be after adding or subtracting a specific number of days.

Updated June 2026 · How this works

Example calculation — edit any field to use your own numbers

Worth knowing
How It Works
The formula, explained simply

Date calculations work by converting dates into milliseconds since January 1, 1970, then finding the difference. What seems like simple arithmetic actually involves complex calendar rules that most people never consider.

Leap years add an extra day every four years, except for years divisible by 100 unless they're also divisible by 400. This means 2000 was a leap year but 1900 wasn't. The calculator handles these exceptions automatically, but understanding them helps explain why some year calculations might seem off by a day.

Business day calculations involve iterating through each date and checking whether it falls on a weekend. This is why business day calculations take slightly longer than simple calendar day math, especially for longer date ranges.

When To Use This
Right tool, right situation

Use this calculator when exact day counts matter for contracts, project management, or legal deadlines. It's particularly valuable for business planning where you need to know working days versus calendar days.

Avoid using it for historical dates before 1582 in Catholic countries or 1752 in England, when the Gregorian calendar replaced the Julian calendar. The calculator assumes modern Gregorian rules for all dates.

For financial calculations involving interest or payments, remember that many systems use 30/360 day count conventions rather than actual calendar days. This calculator shows actual days, which may differ from financial system calculations.

Common Mistakes
Why results sometimes look wrong

The biggest mistake is assuming all months have the same number of days when doing mental math. People often estimate 30 days per month, but the actual range of 28-31 days creates significant errors over multiple months.

Another common error is forgetting that business day calculations depend on which day of the week you start. Adding 5 business days to a Wednesday lands you on the following Wednesday, but adding 5 business days to a Friday pushes the result into the next week.

Many people also miscalculate age in days by forgetting leap years. Over a 30-year period, leap years add about 7-8 extra days that casual calculations miss completely.

The Math
Worked examples and deeper derivation

The core math converts dates to Unix timestamps (milliseconds since January 1, 1970) then divides by 86,400,000 milliseconds per day. This handles timezone-independent calculations and automatically accounts for daylight saving time transitions.

For business days, the calculator steps through each date individually, checking if the day of week (0=Sunday, 6=Saturday) falls between 1-5. This iteration method ensures accuracy across months with different weekend patterns.

Week calculations divide total days by 7, while partial weeks show as decimals. The math assumes all weeks contain exactly 7 days, which works for most planning purposes but may need adjustment for specific business contexts.

Project deadline tracking
Start date: January 15, 2024. End date: March 15, 2024. Include weekends: Yes.
You have exactly 60 days until your project deadline. This equals 8.6 weeks, giving you a clear timeline for planning milestones and deliverables.
Vacation planning with business days
Start date: March 1, 2024. Add 10 days. Include weekends: No.
Taking 10 business days off means you'll return to work on March 15, 2024. This accounts for weekends automatically, so you know exactly when to schedule your return.
Age calculation in days
Start date: January 1, 1990. End date: January 1, 2024. Include weekends: Yes.
This person is exactly 12,418 days old, which equals 1,774 weeks. Sometimes seeing age in days provides perspective on time that years alone cannot capture.
Expert Unlock
The thing most explanations skip

Professional project managers often use business day calculations to set realistic deadlines that account for team availability. A 20-business-day project actually takes 28 calendar days when you include weekends, which affects resource planning and client expectations.

How accurate are date calculations across leap years?

Does the calculator handle leap years correctly?
Yes, the calculator automatically accounts for leap years in all calculations. February 29 is included in leap years and excluded in non-leap years, ensuring accurate day counts across any date range.
What's the difference between calendar days and business days?
Calendar days include every day of the week including weekends. Business days exclude Saturdays and Sundays, counting only Monday through Friday for work-related calculations.
Can I calculate dates more than 100 years in the future or past?
The calculator is limited to 100 years (36,500 days) in either direction to maintain accuracy. This covers virtually all practical planning scenarios while avoiding potential calendar system complications.

Need something this doesn't cover?

Suggest a tool — we'll build it →