How to Count Days Between Two Dates and Add Days to a Date

How to count the days between two dates, how many days are left until Christmas or New Year, and how to add or subtract days, weeks or months, with examples and charts.

How many days until Christmas? What date is it 90 days from now? How many days are there between two dates on a contract? These questions all come down to counting days on the calendar, which is harder than it looks: months have 28 to 31 days, leap years add a day, and you must decide whether the last day counts. This guide gives a reliable method, two worked examples, three ready-to-use charts and the mistakes that cause off-by-one errors.

Count the days now

Enter two dates: the calculator gives the number of days, the same span in weeks, the number of weekdays (Monday to Friday) and the number of weekend days.

Open the days between dates calculator →

How to count the days between two dates

Method 1: count the days between two dates by finishing the month

  1. Count the days left in the start month: days in that month minus the start day.
  2. Add the days of every full month in between.
  3. Add the day number of the end date.

From March 10 to May 20: 31 − 10 = 21 days left in March, 30 days in April, then 20 days in May. Total: 21 + 30 + 20 = 71 days.

Method 2: use the day of the year

Every date has a number from 1 to 365 (366 in a leap year). Within the same year, the gap is simply the difference between the two numbers. The chart below gives the number of the first day of each month; add the day of the month minus 1.

MonthDay number of the 1st (common year)Day number of the 1st (leap year)
January11
February3232
March6061
April9192
May121122
June152153
July182183
August213214
September244245
October274275
November305306
December335336

Example: May 20 is day 121 + 19 = 140 and March 10 is day 60 + 9 = 69 in a common year. 140 − 69 = 71 days, the same result as above. Across two years, count the days left in the first year, then add the day number in the second year.

Does the last day count?

A difference between two dates does not count the end day: from Monday to Tuesday is 1 day. If both the first and the last day count (a hotel stay counted in days, a leave period, an event that lasts from the 3rd to the 5th), add 1. The calculator has an “Include the end day” option for this.

Leap years

A year is a leap year if it is divisible by 4, except century years, which must be divisible by 400. So 2028 is a leap year, 2100 will not be, and 2000 was. A leap year adds February 29, so any period that includes that day is one day longer.

How to add or subtract days, weeks or months

  • Days: move forward one month at a time. From January 31, adding 30 days uses the 28 days of February, then 2 days of March.
  • Weeks: multiply by 7. 50 weeks = 350 days. The weekday stays the same.
  • Months and years: keep the same day number in the target month. If that day does not exist (January 31 + 1 month), the calculator uses the last day of the month: February 28.

Worked examples

Example 1: how many days until Christmas from November 18, 2026?

  • Days left in November: 30 − 18 = 12. Days in December up to the 25th: 25. Total: 12 + 25 = 37 days.
  • That is 5 weeks and 2 days, or 888 hours.
  • Of these 37 days, 27 are weekdays (Monday to Friday) and 10 are weekend days.
  • If you count both November 18 and December 25, you get 38 days.
  • Until New Year’s Day (January 1, 2027): 12 + 31 + 1 = 44 days.

Example 2: a payment deadline at the end of the month

  • An invoice is dated January 31, 2027 and is payable within 30 days: 28 days of February bring you to February 28, then 2 more days give Tuesday, March 2, 2027.
  • If it is payable “in 1 month” instead, the due date is Sunday, February 28, 2027: February has no 31st, so the last day of the month is used. One month and 30 days are not the same thing.
  • Going back: 90 days before March 1, 2027 is December 1, 2026.
  • A leap-day case: February 29, 2028 + 1 year = February 28, 2029.

Check any of these with the add or subtract days calculator (pre-filled with January 31, 2027 + 1 month).

Chart: days until Christmas and New Year from the 1st of each month (2027)

Number of days from the 1st of the month to December 25, 2027 and to January 1, 2028 (end day not counted). 2027 is a common year. In a leap year such as 2028, add 1 day for dates in January and February.

FromDays until ChristmasDays until New Year
January 1, 2027358365
February 1, 2027327334
March 1, 2027299306
April 1, 2027268275
May 1, 2027238245
June 1, 2027207214
July 1, 2027177184
August 1, 2027146153
September 1, 2027115122
October 1, 20278592
November 1, 20275461
December 1, 20272431

Chart: common deadlines from January 15, 2027

January 15, 2027 is a Friday. Results obtained with the same rules as the calculator (months and years keep the same day number).

OperationResulting dateWeekdayDays apart
+ 7 daysJanuary 22, 2027Friday7
+ 10 daysJanuary 25, 2027Monday10
+ 14 daysJanuary 29, 2027Friday14
+ 30 daysFebruary 14, 2027Sunday30
+ 45 daysMarch 1, 2027Monday45
+ 60 daysMarch 16, 2027Tuesday60
+ 90 daysApril 15, 2027Thursday90
+ 100 daysApril 25, 2027Sunday100
+ 180 daysJuly 14, 2027Wednesday180
+ 365 daysJanuary 15, 2028Saturday365
+ 50 weeksDecember 31, 2027Friday350
+ 1 monthFebruary 15, 2027Monday31
+ 3 monthsApril 15, 2027Thursday90
+ 6 monthsJuly 15, 2027Thursday181
+ 1 yearJanuary 15, 2028Saturday365
− 30 daysDecember 16, 2026Wednesday30
− 90 daysOctober 17, 2026Saturday90

Note that 3 months and 90 days happen to give the same date here, but 6 months (181 days) and 180 days do not. Over a different period, the gap changes with the length of the months.

Common mistakes

  • Counting the end day twice. From the 3rd to the 5th is 2 days apart, but 3 days if both the 3rd and the 5th count. Decide which you need before counting.
  • Treating a month as 30 days. January 31 + 1 month = February 28, while + 30 days = March 2.
  • Forgetting February 29 in a leap year (2028, 2032…).
  • Confusing weekdays and business days. The weekday count excludes Saturdays and Sundays only; public holidays are not removed. For a working-day deadline, use the business days calculator and check your local holidays.
  • Starting from the wrong date. For a deadline “within 10 days from receipt”, the start date is the day of receipt.

FAQ

What date is 50 weeks after a given date? Add 350 days. From January 15, 2027 (a Friday), 50 weeks later is Friday, December 31, 2027.

How do I count days between two dates in Excel? Subtract the cells: =B1-A1 gives the number of days. =A1+30 adds 30 days and =EDATE(A1,1) adds one month (it also moves January 31 to February 28).

Does a countdown include today? No. The number of days until an event is the difference between today’s date and the date of the event. On December 24, there is 1 day left until Christmas.

What week of the year are we in? See our week numbers 2026 calendar for ISO week numbers.

Useful calculators

AllCalculs Team
AllCalculs Team

The AllCalculs team builds free online calculators and writes these guides. Every formula and example is checked against the calculator it links to.

Articles: 96