Time calculators

Days Calculator

Updated Aug 3, 2026 By Jehan Wadia
Rate Formulas
Days Between Two Dates
Leave both times at 00:00 to skip hours and minutes.
Include end date in the count?
Choosing "Yes" counts the end date itself, adding one day to the total.
Days of the week to count

Result

Summary
Total days

Day-of-Week Distribution Across the Span
Step-by-Step Solution

Introduction

The Days Calculator helps you count days between dates, add or subtract days from a date, and find out how many days are left until a future date. Just type in your dates and get an answer right away.

This free date calculator has three tools in one:

  • Days Between Two Dates – Count the days from a start date to an end date. You can also add a start and end time to get hours and minutes. For a fuller breakdown of a span, try the Date Duration Calculator.
  • Add / Subtract Days – Pick a date, type a number of days, and see the new date. Use a negative number to go back in time, or use the dedicated Add Days Calculator and Days Ago Calculator.
  • Days Until a Date – See how many days are left until a birthday, due date, holiday, or deadline. It counts from today, just like our Days Until Calculator.

You can choose to count the end date, and you can pick which days of the week to count. That makes it easy to count only weekdays, only weekends, or only one day like every Monday. If you need holidays excluded as well, the Business Days Calculator handles that.

Each answer also shows your total in weeks, months, and years, plus a chart of the days of the week and a step-by-step solution so you can see how the math works. People use this tool to plan trips, track work days, count down to big events, and check contract or school deadlines. Related helpers include the Weeks Calculator, the Month Calculator, and the Year Calculator.

How to use our Days Calculator

Pick a tab, type in your dates, and the calculator shows the total days, weeks, months, and years between them, plus a step-by-step solution and a day-of-week chart.

Tab choice: Click "Days Between Two Dates" to count days from one date to another, "Add / Subtract Days" to find a new date, or "Days Until a Date" to count down from today.

Start Date: Type or pick the first date you want to count from. Tap the "Today" button to fill in today's date fast.

Start Time (optional): Add a clock time if you want hours and minutes counted too. Leave it at 00:00 to skip times. For clock-only math, see the Time Duration Calculator.

End Date: Type or pick the last date. If it comes before the start date, the tool counts backward and says so, much like the Days Since Calculator.

End Time (optional): Add the clock time for the end date. Leave it at 00:00 if you only need whole days.

Include end date in the count: Choose "No" for a plain gap between dates. Choose "Yes" to count the last day too, which adds one day.

Days of the week to count: Keep "Include all days?" checked for every day. Uncheck it to pick only the days you want, like Monday through Friday for work days. If you are totaling shifts instead, the Work Hours Calculator is a better fit.

Starting Date (Add / Subtract tab): Pick the date you want to move forward or back from. You can also use the Date Add Calculator for the same job.

Number of Days: Type a whole number. A plus number adds days, and a minus number like −45 subtracts days. To jump ahead from today, the Days From Today Calculator and Days From Date Calculator do this in one step.

Target Date (Days Until tab): Pick the future or past date you care about, such as a birthday, due date, or holiday. The tool counts from today. For pregnancy dates, try the Due Date Calculator; for exact age, use the Age Calculator.

Calculate and Clear: Press "Calculate" to see your answer, or "Clear / Reset" to start over with fresh dates.

What Are Days Between Dates?

Counting days between two dates means finding how many times midnight passes from one date to the other. For example, from March 1 to March 8 is 7 days. Date math like this is used for due dates, deadlines, contracts, trips, pregnancy weeks, work leave, and countdowns to birthdays or holidays. Related tools include the Deadline Calculator, the Gestational Age Calculator, and the Annual Leave Calculator.

Why Day Counting Can Be Tricky

Months do not all have the same length. Some have 28, 29, 30, or 31 days. Leap years add an extra day, February 29, almost every 4 years. A year is really about 365.2425 days long, not exactly 365. Because of this, you cannot just multiply months by 30 and get the right answer. Counting the real calendar days is the only exact way, which is why a general-purpose Date Calculator beats mental math.

Counting the End Date or Not

There are two normal ways to count:

  • Do not include the end date: you count the gap between the dates. Monday to Friday is 4 days.
  • Include the end date: you count both dates and everything in between. Monday to Friday is 5 days.

Schools, courts, and jobs sometimes pick different rules, so check which one your task needs. Including the end date always adds exactly one day.

Counting Only Certain Weekdays

Sometimes you only care about work days. If you count Monday through Friday and skip Saturday and Sunday, you get business days. A full week always has one of each weekday, so a 28-day span holds exactly 20 weekdays and 8 weekend days. Holidays are not weekends, so you may need to subtract those yourself. For staffing patterns, the Shift Calculator and PTO Accrual Calculator can help.

Adding or Subtracting Days from a Date

Date shifting means moving forward or backward on the calendar. If a rule says "pay within 30 days," you start at today's date and count 30 days ahead, rolling into the next month when needed. Subtracting works the same way going back in time. This is how people find things like a 90-day return window or a 180-day visa limit.

Ways to Describe the Same Span

UnitHow It Works
DaysThe exact count. Most reliable.
WeeksDays ÷ 7, plus leftover days. See the Weeks To Months Calculator.
MonthsCounted by calendar, so month lengths differ.
YearsDays ÷ 365.2425, which handles leap years.
Hours / MinutesDays × 24, then × 60. Useful when times are added, or use the Hours And Minutes Calculator.

Helpful Facts to Remember

  • A common year has 365 days; a leap year has 366.
  • Years divisible by 4 are leap years, except century years not divisible by 400. So 2000 was a leap year, but 1900 was not. The next leap year after 2024 is 2028.
  • Every date repeats the same weekday after 7 days, so 364 days later is the same weekday.
  • 52 weeks equal 364 days, which is one day short of a full year. That is why your birthday moves ahead one weekday each year, or two after a leap day. Compare two people's spans with the Age Difference Calculator.

Formulas used

Days between two dates (from millisecond difference)
D = \frac{|t_{\text{end}} - t_{\text{start}}|}{86{,}400{,}000\ \text{ms/day}} = \frac{\Delta\ \text{seconds}}{86{,}400}
Adjustment when the end date is included
D_{\text{adj}} = D + \begin{cases} 1 & \text{include end date} \\ 0 & \text{otherwise}\end{cases}
Result date when adding or subtracting days
t_{\text{result}} = t_{\text{start}} \pm n \cdot 86{,}400{,}000\ \text{ms}, \qquad D = |n|
Counting only selected days of the week
D_{\text{counted}} = \sum_{w \in S} c_w, \qquad c_w = \left\lfloor \frac{N}{7} \right\rfloor + \begin{cases} 1 & \exists\, i < (N \bmod 7):\ (w_{\text{start}} + i) \bmod 7 = w \\ 0 & \text{otherwise}\end{cases}
Days converted to weeks plus remaining days
W = \left\lfloor \frac{D}{7} \right\rfloor, \qquad d_{\text{rem}} = D - 7W
Calendar span in years, months, days converted to total months
M_{\text{total}} = 12Y + M, \qquad \text{span} = (Y,\ M,\ d)
Approximate total years (mean Gregorian year)
Y_{\text{dec}} = \frac{D}{365.2425}
Total hours and minutes in the span
H = D \times 24, \qquad \text{Min} = H \times 60

Frequently asked questions

Does the Days Until a Date tab count today?

No, not by default. It counts the days after today up to your target date. If you want today or the target day counted too, set Include the target date to Yes. That adds one day to the total.

Which include-end-date setting should I use for a hotel stay or a vacation?

For hotel nights, pick No. Checking in on the 5th and out on the 9th is 4 nights.

For days off work or days you will be away, pick Yes. The 5th through the 9th is 5 days.

Can I count only weekends, or only every Monday?

Yes. Uncheck Include all days?, then check just the days you want.

  • Sat and Sun only = weekend days
  • Mon to Fri only = work days
  • Mon only = number of Mondays in the span

Does this calculator skip holidays?

No. It can skip days of the week, but not holidays. Holidays fall on many different weekdays, so you need to subtract them yourself. Or use a business days tool that has a holiday list built in.

How do I subtract days from a date?

Go to the Add / Subtract Days tab and type a minus sign in front of the number. For example, type -45 to go back 45 days. A plain number like 45 moves forward.

What happens if my end date is before my start date?

The tool still works. It counts the gap and tells you the span goes backward in time. The total days stay a positive number, and the badge says how many days earlier the date is.

Why do the months and years say "approximately"?

Because months are not all the same size, and a year is about 365.2425 days, not exactly 365. The total days number is always exact. The month and year numbers are a close, rounded way to describe the same span.

Why is 3 months not always 90 days?

Month lengths change. March 1 to June 1 is 92 days, but December 1 to March 1 is 90 days (91 in a leap year). If a rule says 90 days, count 90 days, not 3 months.

Do I have to enter times?

No. Leave both times at 00:00 and the tool counts whole days only. Enter times if you want hours and minutes in your answer, like 9:00 AM Monday to 3:30 PM Friday.

Why don't I see hours and minutes in my result?

Those rows only appear when you enter a start or end time on the Days Between Two Dates tab. If both times are 00:00, the tool shows whole days instead.

Does the calculator handle leap years and February 29?

Yes. It counts real calendar days, so leap days are included automatically. 2028 is the next leap year. If you add days and land on February 29 in a leap year, the tool shows that date.

What does the day-of-week chart show me?

It shows how many Mondays, Tuesdays, and so on fall inside your span. Blue bars are days that were counted. Orange bars are days your weekday filter left out.

What is the difference between "total days" and "calendar span"?

Total days is the exact day count, like 90 days. Calendar span breaks the same gap into years, months, and days, like 2 months and 29 days. Both describe the same span in different words.

Will my time zone change the answer?

No. The tool treats your dates as plain calendar dates, so a date never slips forward or back by one day. Today's date comes from your own device clock.

Is there a limit to how many days I can add or subtract?

Yes. You can use any whole number from -1,000,000 to 1,000,000 days. Decimals are not allowed, so type 90 and not 90.5.

Can I use dates far in the past or far in the future?

Yes. You can enter old dates like 1965 or future dates like 2099, and the math stays correct. Very old dates before the modern calendar started may not match old historic records.

How do I find out how many weeks are between two dates?

Enter both dates and look at the Total weeks row. It shows full weeks plus leftover days, such as 12 weeks and 6 days. The math is simply days divided by 7.

Can I use this to find someone's age?

Yes. Put the birth date as the start date and today as the end date. The Calendar span row gives the age in years, months, and days.

Where can I see how the answer was worked out?

Scroll to the Step-by-Step Solution box under the chart. It shows each step, like turning the gap into days, adding one day if you included the end date, and dividing by 7 for weeks.

How do I start over with new dates?

Click Clear / Reset. That puts the tab back to its default dates. You can also press the Today button next to any date box to fill in today's date fast.

Are my dates saved or sent anywhere?

No. All the math runs right inside your browser. Nothing you type is stored or shared.