Days Between Dates Calculator
Calculate the exact number of days, weeks, months, and years between any two dates. Includes business days and weekend counts. See also Date Calculator and Work Days Calculator.
How to Calculate Days Between Two Dates
The days between dates calculator finds the exact number of calendar days separating two dates. It computes the absolute difference in milliseconds, then converts to days. The "include end date" option adds one day to the count, which is useful when both the start and end dates should be counted (e.g., rental periods, event durations). Business days exclude Saturdays and Sundays from the count.
Calculation Formulas
Total Days = |end_date - start_date| / 86,400,000 ms
Inclusive Count = Total Days + 1
Weeks = floor(Total Days / 7)
Business Days = Total Days - Weekend Days
Total Hours = Total Days x 24
Total Minutes = Total Days x 1,440
Leap Year Considerations
When calculating days between dates that span February, leap years add an extra day. A year is a leap year if it is divisible by 4, except for century years which must be divisible by 400. This means 2024 is a leap year, 2100 is not, and 2000 was. The calculator handles this automatically using JavaScript Date objects which account for the Gregorian calendar rules.
Common Date Intervals Reference
| Period | Calendar Days | Business Days | Weekends |
|---|---|---|---|
| 1 Week | 7 | 5 | 2 |
| 2 Weeks | 14 | 10 | 4 |
| 1 Month (30d) | 30 | ~22 | ~8 |
| 1 Quarter (90d) | 90 | ~64 | ~26 |
| 6 Months (182d) | 182 | ~130 | ~52 |
| 1 Year (365d) | 365 | ~261 | ~104 |
| 1 Year (366d, leap) | 366 | ~262 | ~104 |
Real-World Applications
Event Planning
Count days until a wedding, conference, or product launch. Knowing exact days helps pace preparation milestones and vendor deadlines.
Contract Deadlines
Legal contracts often specify notice periods or delivery windows in calendar days. Calculate exact compliance dates to avoid penalties.
Age Verification
Determine exact age in days for legal compliance (e.g., minimum age requirements of 6,570 days for 18 years).
Insurance and Finance
Calculate policy durations, interest accrual periods, and payment schedules that depend on exact day counts between dates.
Solved Examples
Example 1: A wedding is on October 18, 2025. Today is January 5, 2025. How many days until the wedding?
January remaining: 31 - 5 = 26 days
Full months: Feb(28) + Mar(31) + Apr(30) + May(31) + Jun(30) + Jul(31) + Aug(31) + Sep(30) = 242
October: 18 days
Answer: 26 + 242 + 18 = 286 days until the wedding.
Example 2: A 90-day return policy starts on March 1, 2025. What is the last day to return?
Add 90 days to March 1: Mar(31-1=30) + Apr(30) + May(30 remaining) = 90
Answer: May 30, 2025 is the last day for returns.
Example 3: A contract runs from April 15, 2024 to April 15, 2025. How many total days?
2024 is a leap year, so the range includes Feb 29, 2025 does not exist in the range.
April 15 to April 15: exactly 1 year = 366 days (since 2024 is a leap year and the range spans all of it).
Answer: 366 days (the period includes the leap day Feb 29, 2024... actually the range Apr 15, 2024 to Apr 15, 2025 = 365 days since leap day falls within the year but the full span is exactly 365 days).
Practice Questions
1. Your vacation is from June 15 to July 3 (inclusive). How many days is the trip?
Answer: 19 days inclusive. June: 16 days remaining (15-30) + July: 3 days = 18 exclusive + 1 for inclusive = 19.
2. An insurance policy runs from September 1, 2024 to August 31, 2025. Total calendar days?
Answer: 365 days. This is exactly one year and 2024 leap day (Feb 29) falls outside this range.
3. How many business days between December 20, 2024 and January 6, 2025?
Answer: About 11 business days (17 calendar days minus 4 weekend days minus Christmas and New Year holidays).
Key Takeaways
- Exclusive counting (default) does not count the start date; inclusive counting adds one day.
- Business days are roughly 71% of calendar days (5/7) before holiday adjustments.
- One year has approximately 261 business days (365 - 104 weekend days).
- Leap years add one extra day when the range spans February 29.
- For legal deadlines, always clarify whether the count is inclusive or exclusive of endpoints.
- The order of start and end dates does not matter; the calculator always returns a positive count.
Frequently Asked Questions
Should I include the end date in the count?
It depends on your use case. For "how many days until" questions, exclude the end date. For rental periods or event durations where both start and end days count, include it. For example, a hotel stay from Jan 1 to Jan 3 is 2 nights but 3 days (inclusive).
How are business days calculated?
Business days count only Monday through Friday, excluding Saturdays and Sundays. This calculator does not account for public holidays. For holiday-aware calculations, use the Work Days Calculator.
Does this account for leap years?
Yes. The calculator uses actual calendar dates, so February 29 in leap years is counted correctly. A span from Jan 1 to Dec 31 in a leap year is 365 days (or 366 inclusive).
Can I enter the end date before the start date?
Yes. The calculator uses the absolute difference, so the order does not matter. It will always show a positive number of days.
How do I calculate months between dates?
The calculator shows the result in multiple formats including months + days and years + months + days. It counts complete calendar months (not fixed 30-day periods) for accuracy.
What is the difference between calendar days and working days?
Calendar days include every day (Monday through Sunday). Working days (business days) exclude weekends. In a typical week, there are 7 calendar days but only 5 working days.