“How many days until this deadline?” “What date is 90 days from today?” Counting days between dates is a common task at work and in daily life, but flipping through a calendar is tedious, and it is easy to make mistakes when a period crosses months.

In this guide, we explain how to calculate the number of days between two dates and how to find the date N days from today in simple terms. You will also learn about leap years, converting days into weeks and months, and how to use a free browser-based date calculator.

What is date calculation?

Date calculation means finding how many days lie between two dates. There are two main types:

Type What it does Example
Difference between dates How many days are between two dates “How many days between January 15 and March 1?”
Adding or subtracting days The date that falls N days before or after a base date “What date is 90 days from today?”

When calculating a difference, dates are measured as midnight-to-midnight intervals. For example, “January 1 to January 2” is 1 day, and “January 1 to January 1” is 0 days. If you count the starting day as well (as in “3 days from the 1st to the 3rd”), the result shifts by one, so it helps to know which convention you are using.

How to calculate days between two dates

When calculating by hand, use the real calendar rather than assuming every month has 30 days. Three steps are enough:

1. Count the remaining days in the starting month

Count from the start date to the end of that month. For example, starting on January 15, 2026, there are 16 days to January 31.

2. Add the full months in between

Add the number of days in each month between the start and end months. In the example “January 15 to March 1, 2026”, February has 28 days (2026 is not a leap year), so add 28.

3. Add the days in the final month

Add the days up to the end date. For March 1, that is 1 day.

The result is 16 + 28 + 1 = 45 days.

Tip for mental math: instead of memorizing which months have 30 or 31 days, use the knuckle trick on your hand or open the month in your phone's calendar app. You are far less likely to miscount.

Three things to watch out for

1. Leap years add one day to February

In a leap year, February has 29 days and the year has 366 days. A year is a leap year if it is divisible by 4, except that years divisible by 100 are not leap years unless they are also divisible by 400. For example, 2024 was a leap year, 2025 and 2026 are not, and 2100 will not be.

How a leap year changes the result: "January 15 to March 1" is 45 days in the common year 2026, but 46 days in the leap year 2024 because February has 29 days.

2. For month-crossing periods, count the remaining days first

When a period crosses a month boundary, break it into “remaining days in this month + days in the following months.” For example, 30 days from August 16, 2026 is the 15 remaining days of August (through August 31) plus 15 days of September, giving September 15, 2026.

3. Check whether the start day is included

Including the start date adds one day. For deadlines in contracts and business, the start date is often excluded by convention, but most date calculator tools (including the one in this article) measure midnight-to-midnight intervals, so choosing the same date for both ends gives 0 days. If your result looks one day off, check which convention is being used.

Common date calculation examples

Calculation Answer (2026 dates)
Days between January 15 and March 1, 2026 45 days
30 days from August 16, 2026 September 15, 2026
90 days from August 16, 2026 November 14, 2026
Days until December 25, 2026 (from August 16) 131 days

Heads up: calculating "90 days from August 16" by hand requires adding the correct number of days in each month (September has 30, October has 31). One wrong month and the answer is off, so it is worth double-checking with a tool.

How to use the Tools Hub date calculator

Instead of doing the math by hand, a free browser-based tool is faster and more reliable. The Tools Hub date calculator runs entirely on your device — your dates are never sent to a server.

How to use it (two features)

1

Calculate the difference between two dates

Pick a start date and an end date from the calendar pickers, and the tool instantly shows the difference in days, weeks, and approximate months. Handy for birthdays or checking the length of a contract period.

2

Find the date N days from a base date

Enter a base date (it defaults to today) and the number of days to add, then press "Calculate". The tool shows the resulting date. Enter a negative number to find a date N days earlier.

3

Use the result

Add the resulting date to your calendar app or schedule. Leap years and month boundaries are handled automatically, so there is no risk of miscounting.

The tool from this guide

Date Calculator

Free, no sign-up required, and everything runs in your browser.

Try it now

Summary

  • Date calculation covers two tasks: the difference between two dates, and the date N days from a base date
  • For mental math, split the period into “remaining days of the start month + full months in between + days of the end month”
  • Leap years (divisible by 4, with exceptions) give February 29 days, which shifts results by one day
  • Decide whether the start date is included before comparing results
  • The Tools Hub date calculator handles leap years and month boundaries automatically, for free, right in your browser

Once you get used to it, date math is simple — but when a deadline or contract is involved, a one-day error can matter a lot. For important calculations, check with a tool and plan with some buffer.

FAQ

How do I calculate 90 days from today?

Add 90 to today’s date. For month-crossing periods, split it into “remaining days this month + days in the following months.” With the Tools Hub date calculator, just leave the base date as today and enter “90” — the resulting date appears instantly.

How are leap years handled in date calculations?

In a leap year, February has 29 days and the year has 366 days. Tools handle this automatically for periods that cross February. A year is a leap year if it is divisible by 4, except that centuries are leap years only when divisible by 400.

What is the difference between including and excluding the start date?

Including the start date adds one day. For example, “January 1 to January 3” is 3 days inclusive but 2 days exclusive. Most calculator tools measure midnight-to-midnight intervals, so two identical dates give 0 days.

How do I convert days into weeks or months?

Divide the number of days by 7 for weeks (for example, 45 ÷ 7 ≈ 6.4 weeks) and by 30 for an approximate number of months (45 ÷ 30 ≈ 1.5 months). Exact “months” are hard to define because months differ in length, so treat the result as an estimate. The Tools Hub date calculator shows days, weeks, and approximate months at the same time.

References