Date Calculator — Days Between Dates
Calculate the difference between two dates in days, weeks, months, and years. Find deadlines, anniversaries, and durations instantly.
Formula
Result Date = Start Date ± (Years + Months + Weeks + Days)
Add or subtract time units from a starting date using proper calendar arithmetic. Days are added first, then weeks, months, and years. Leap years and varying month lengths are handled automatically.
Worked Examples
Example 1: Days Between Two Dates
Problem:You booked a vacation rental from June 3, 2025 to August 22, 2025. How many days is your stay, and how many of those are weekdays?
Solution:Start: June 3, 2025 End: August 22, 2025 June: 27 remaining days (June 4-30) July: 31 days August: 22 days Total: 27 + 31 + 22 = 80 days 80 days = 11 weeks and 3 days Complete weeks contribute 55 weekdays and 22 weekend days. The remaining 3 days (Wed, Thu, Fri) are all weekdays. Weekdays: 55 + 3 = 58 | Weekend days: 22
Result:80 total days (58 weekdays, 22 weekend days)
Example 2: Adding 90 Days to a Date
Problem:An invoice is dated March 10, 2025 with net-90 payment terms. What is the payment due date?
Solution:Start date: March 10, 2025 Add: 90 days March 10 + 90 days: - March: 21 remaining days (Mar 11-31) - April: 30 days (running total: 51) - May: 31 days (running total: 82) - June: 8 more days needed (82 + 8 = 90) 21 + 30 + 31 + 8 = 90 days June 8, 2025 falls on a Sunday, so the business due date would be Monday, June 9.
Result:June 8, 2025 (Sunday) -- business due date: June 9, 2025 (Monday)
Example 3: Calculating Age in Days
Problem:Someone was born on September 15, 1990. How old are they in days on their 35th birthday (September 15, 2025)?
Solution:Start: September 15, 1990 End: September 15, 2025 That span covers exactly 35 years. Leap years in range: 1992, 1996, 2000, 2004, 2008, 2012, 2016, 2020, 2024 = 9 leap years Non-leap years: 35 - 9 = 26 Days from non-leap years: 26 x 365 = 9,490 Days from leap years: 9 x 366 = 3,294 Total: 9,490 + 3,294 = 12,784 days That is 1,826 weeks and 2 days, or roughly 420 months.
Result:12,784 days (1,826 weeks and 2 days)
Frequently Asked Questions
How do I add days to a date?
Enter your start date, then specify the number of days to add. The calculator immediately shows the resulting date. You can also add weeks, months, and years simultaneously for complex calculations. For example, adding 90 days to January 1st gives you April 1st (in non-leap years).
How many days are between two dates?
Use the 'Difference' tab, enter both dates, and the calculator shows total days, weeks, months, and years between them. It also breaks down weekdays vs weekend days and shows the duration in hours and minutes. The calculation accounts for leap years automatically.
Does the calculator account for leap years?
Yes, the calculator uses proper date arithmetic that accounts for leap years (February 29th), varying month lengths (28-31 days), and all calendar irregularities. Adding one year to February 29, 2024 correctly returns February 28, 2025.
What is the difference between calendar days and business days?
Calendar days include all days (weekdays and weekends). Business days (workdays) only count Monday through Friday, excluding weekends. The calculator shows both. For exact business day calculations, you'd also need to exclude holidays, which vary by country and region.
How do I calculate a deadline or due date?
Enter today's date as the start date, then add the required number of days, weeks, or months. For a '30-day deadline' from today, enter 30 in the days field. For 'net 60 payment terms', enter 60 days. The result shows the exact due date and what day of the week it falls on.
How do I find what date was X days ago?
Use the 'Subtract' tab. Enter today's date and the number of days to subtract. For example, to find what date was 90 days ago, enter 90 in the days field. This is useful for tracking warranty periods, return windows, or historical date lookups.
Can I calculate dates across different years?
Yes, the calculator handles any date range. You can add or subtract multiple years along with months, weeks, and days. It correctly handles year transitions, century changes, and even calculations spanning decades or centuries.
How accurate are month calculations?
Month calculations account for varying month lengths. Adding 1 month to January 31st returns February 28th (or 29th in leap years) since February doesn't have 31 days. This is standard date arithmetic behavior. For precise 30-day periods, use the days field instead.
What's the formula for calculating days between dates?
The basic formula is: Days = End Date - Start Date. However, proper calculation must account for leap years, month lengths, and timezone considerations. Julian Day Number calculations convert dates to a continuous day count since a fixed reference point, making subtraction straightforward.
How do I calculate age from birthdate?
Enter your birthdate as the start date and today's date as the end date in the 'Difference' tab. The calculator shows your exact age in years, months, weeks, and days. For more detailed age calculations including time of day, use our dedicated Age Calculator.
Background & Theory
Date calculations involve understanding calendar systems, handling irregular month lengths, and accounting for leap years. This knowledge is essential for project planning, legal deadlines, financial calculations, and everyday scheduling.
Calendar Fundamentals:
Gregorian Calendar: The standard calendar used worldwide since 1582. Features 12 months of varying lengths (28-31 days), totaling 365 days normally and 366 in leap years.
Month Lengths:
- 31 days: January, March, May, July, August, October, December
- 30 days: April, June, September, November
- 28/29 days: February (29 in leap years)
Leap Year Rules:
- Years divisible by 4 are leap years
- Exception: Years divisible by 100 are NOT leap years
- Exception to exception: Years divisible by 400 ARE leap years
- So 2000 was a leap year, but 1900 was not
Date Arithmetic:
Adding Days:
Add to current day, rolling over to next month when exceeding month length.
Example: January 28 + 5 days = February 2
Adding Months:
Move to same day in target month. If that day doesn't exist, use last day of month.
Example: January 31 + 1 month = February 28 (or 29)
Adding Years:
Move to same date in target year. February 29 becomes February 28 in non-leap years.
Calculating Differences:
Total Days: Simple subtraction after converting to day numbers
Months: Count complete months between dates
Years: Count complete years between dates
Business Day Calculations:
Weekdays (Monday-Friday) are business days in most countries. To calculate business days:
- Count total days
- Calculate complete weeks × 5
- Add remaining weekdays
- Subtract holidays (varies by jurisdiction)
Common Applications:
- Contract deadlines and payment terms
- Project timelines and milestones
- Warranty and guarantee periods
- Age calculations
- Interest calculations (actual/actual, 30/360)
- Shipping and delivery estimates
- Legal filing deadlines
Tips for Accuracy:
- Clarify whether end date is included or excluded
- Specify calendar days vs business days
- Account for timezone differences in global calculations
- Consider holidays for business day calculations
- Use ISO 8601 format (YYYY-MM-DD) to avoid ambiguity