How to Add or Subtract Days From a Date and Find the Days Between Two Dates
Date math is useful for deadlines, due dates, trips and countdowns. There are two common tasks: moving a date forward or back, and counting the days between two dates.
Add days to a date
Count forward, moving to the next month when you pass the last day of the current one.
Example: October 8, 2026 plus 45 days.
- October has 31 days, so 23 days gets you to October 31.
- The remaining 22 days land on November 22, 2026.
Subtract days from a date
Count backward in the same way. Example: March 10, 2026 minus 15 days. March 10 minus 10 days is February 28 (2026 is not a leap year), and 5 more days back is February 23, 2026.
Days between two dates
Days between = later date − earlier date
Example: January 1, 2026 to December 31, 2026 is 364 days. If you also want to count both the first and last day, add 1, which gives 365.
Weeks and months
- Weeks = days ÷ 7. For 364 days, that is exactly 52 weeks.
- Months are not a fixed length, so they are counted by calendar month rather than by dividing days.
Things to keep in mind
- Leap years add February 29, which changes counts that cross it.
- Decide whether your count should include the start date, since it changes the result by one day.
Try it yourself
Skip the manual math with the Date Calculator.
More guides
- How to Calculate Salary: Yearly, Monthly, Biweekly, Weekly and Hourly Pay
- How to Convert an Hourly Wage to an Annual Salary
- How to Calculate Overtime Pay
- How to Calculate a Monthly Mortgage Payment
- How to Calculate Compound Interest With Monthly Contributions
- How to Calculate a Car Loan Payment and Total Interest
- How to Calculate Percentages: Percent of a Number, Percent Change and More
- How to Calculate Exact Age in Years, Months and Days
- How to Calculate Hours Worked Between a Start and End Time