Number of Days Calculator - Count, Add, or Subtract Days
Use the number of days calculator to count the gap between two dates, add days to a start date, or subtract days from an end date in days, weeks, months, or years.
Number of Days Calculator
Results
What Is a Number of Days Calculator?
A number of days calculator is a date arithmetic tool that tells you exactly how many days sit between any two calendar dates, and that can solve in the other direction by adding or subtracting a chosen number of days from a start or end date. It is the calculator people reach for when counting down to a vacation, figuring out a notice period, billing a project by day, or checking how long they have lived in whole days.
- • Event planning: Count the exact gap from today to a wedding, birthday, or vacation so you can plan tasks and budget for the right number of days.
- • Project and contract work: Measure deadlines, notice periods, and contract durations where every day matters.
- • Time off and school terms: Add a fixed number of days to a return-to-work date or find the school break length in whole days.
- • Reverse date math: Solve for the missing date when you know the start or end and the gap, useful for '30 days from today' or 'what day was 100 days ago'.
Because the calculation is driven by a single millisecond subtraction between two UTC dates, the same tool can count the days in a week, the days until retirement, or the days since a historical event, all without mental gymnastics.
The interface also lets you change the unit of the gap on the fly, so you can read the answer in days, weeks, months, or years at the same time, which is useful for longer horizons like a year-long subscription or a multi-year project plan.
If your question is simply the gap between two dates, the focused Days Between Dates Calculator returns the same exclusive count with a calendar and weeks breakdown.
How the Number of Days Calculator Works
Under the hood, the calculator reads both date inputs, treats them as midnight in Coordinated Universal Time to avoid local time-zone shifts, subtracts the earlier timestamp from the later one, and divides by the number of milliseconds in a day. From that one integer it derives the same gap in weeks, months, and years using standard average-day constants so the result stays predictable for short and long intervals.
- fromDate: ISO 8601 calendar date (yyyy-mm-dd) treated as midnight UTC.
- toDate: ISO 8601 calendar date (yyyy-mm-dd) treated as midnight UTC.
- timeBetween: Numeric gap. Acts as output when both dates are set, or as input when one date is blank.
- timeUnit: Unit for the timeBetween value: days, weeks, months, or years.
- includeEndDate: Boolean toggle; when true, adds one day so both endpoints are counted.
- businessDaysOnly: Boolean toggle; when true, walks day by day and skips Saturdays and Sundays.
When you leave one date blank and fill in Time Between with a value, the calculator runs the same arithmetic in reverse: it converts the unit into days, then adds or subtracts that many days from the date you provided, so 'what day is 90 days from today' becomes a one-line answer.
For business days, the algorithm walks day by day through the interval and counts only Monday through Friday, which keeps the answer correct across long ranges that include dozens of weekends.
Counting a one-week interval
From Date: 2026-06-14, To Date: 2026-06-21, Unit: Days, Include End Date: No, Weekdays Only: No
(2026-06-21 UTC − 2026-06-14 UTC) / 86,400,000 = 7 days
7 days (1.00 week, 0.23 month, 0.02 year)
Use the result to plan a one-week sprint, a seven-day notice period, or the lead time on a small project.
Adding 90 business days to a start date
From Date: 2026-06-15, To Date: (blank), Time Between: 90, Unit: Days, Weekdays Only: Yes
Walk 90 weekdays forward from 2026-06-15 (Monday) to land on 2026-10-12 (Monday)
To Date: 2026-10-12, gap: 90 business days
Use this for service-level agreements, statutory response windows, and HR notice periods that exclude weekends.
According to MDN Web Docs - Date, subtracting two JavaScript Date objects and dividing the millisecond difference by 86,400,000 returns the integer number of days between them.
According to Omni Calculator - Number of Days, the calculator supports three modes: counting days between two dates, adding days forward from a start date, and subtracting days backward from an end date.
When you also need hours, minutes, and seconds for the same interval, switch to the Time Between Dates Calculator which keeps the day count and adds the clock-time precision.
Key Concepts Behind the Day Count
These four ideas show up everywhere in calendars, payroll, and project planning, so it helps to know what each one means before you trust the answer on the right.
Calendar Days
Every date on the calendar is counted, including Saturdays, Sundays, and public holidays. This is the default mode and matches how most people count on a wall calendar.
Inclusive vs Exclusive Counting
An exclusive count treats the end date as a boundary that is not part of the interval, while an inclusive count adds one day so both endpoints contribute. Hotel stays, court notice periods, and rental contracts usually require the inclusive rule.
Business Days (Weekdays Only)
Business days are the Monday through Friday portion of the week. Counting in business days strips out weekends, which matters for payroll runs, lead-time estimates, and any deadline that does not tick on weekends.
Average Day Constants
Months and years do not have a fixed length, so the calculator falls back on the standard averages: 30.4375 days per month and 365.25 days per year, which match the Julian year used for general-purpose date math.
Holding these four ideas in mind makes it easier to switch between calendar-day reports for personal planning and business-day reports for billing, because you know which toggle to flip and which constant is being applied.
For multi-year horizons, the Years Between Dates Calculator breaks the gap into whole years, leftover months, and leftover days, which is often easier to read than an average-months number.
How to Use This Number of Days Calculator
Pick a mode by filling in the fields that match your question, and leave the rest blank. The calculator updates the answer on every change so you can experiment freely.
- 1 Pick the From date: Use the date picker to choose the start of the period, or leave it blank if you are working backward from a known end date.
- 2 Pick the To date: Choose the end of the period, or leave it blank if you want to add or subtract a number of days to find it.
- 3 Set Time Between and the unit: Type the number of days, weeks, months, or years, and pick the matching unit. The same field becomes the answer when both dates are filled in.
- 4 Choose inclusive or business-day counting: Toggle Include End Date to count both endpoints, and toggle Weekdays Only to skip Saturdays and Sundays.
- 5 Read the answer and the breakdown: The primary result is the integer number of days, and the rows below show the same gap in weeks, months, and years for quick scanning.
To check the gap from 2026-06-14 to 2026-06-21 in calendar days, leave Include End Date off and Weekdays Only off, and the calculator returns 7 days, which is 1.00 week, 0.23 month, and 0.02 year. Flip Weekdays Only on and the answer drops to 5 weekdays.
Once you are comfortable adding and subtracting days, the general Date Calculator extends the same workflow to weeks, months, and years in a single form.
Benefits of Using This Number of Days Calculator
The calculator removes the most common sources of date-arithmetic mistakes and turns a problem that used to need a calendar and a pen into a single form.
- • Avoids manual calendar errors: Leap years, 30 vs 31 day months, and February get handled automatically, so you never add up a row of day counts by hand.
- • Switches units without recomputing: The same interval is shown in days, weeks, months, and years, so you can quote a project plan in weeks and a budget in months from one number.
- • Solves forward and backward: Leaving a date blank turns the calculator into a date adder or subtractor, so 'X days from today' and 'Y days before this deadline' share the same interface.
- • Supports calendar and business days: The Include End Date and Weekdays Only toggles cover personal planning, payroll, lead time, and SLA reporting without a second tool.
- • Works without an internet connection: Because the calculation runs entirely in the browser, the answer stays correct after the page loads even if your connection drops.
For longer ranges, the breakdown in months and years also helps you sanity-check the duration, because seeing '2.05 years' next to '750 days' is easier to trust than a raw number like 750.
For event-specific countdowns, the Date Countdown Calculator shows the live days, hours, minutes, and seconds remaining until a single target date.
Factors and Limitations That Affect the Answer
Day counting looks simple, but a few calendar details can change the result, especially for long intervals or business-day reports.
Leap years in February
February has 28 days in a common year and 29 days in a leap year, so an interval that crosses February 29 (for example 2024-02-25 to 2024-03-01) is 5 days, not 6. The calculator checks the actual days in February for the years in the interval.
Month length differences
Months range from 28 to 31 days, so the gap between two same-day-of-month dates can vary by up to three days depending on which months are involved. The breakdown in months is an average, not a calendar count.
Inclusive versus exclusive convention
Two apps can report a one-day difference for the same interval when one is inclusive and the other is exclusive. Check the convention before quoting the answer in a contract or invoice.
Weekend handling for business days
When Weekdays Only is on, an interval that lands entirely inside a weekend returns 0 business days, which is correct for payroll but a common surprise for personal planning.
Time zone and clock-time differences
The calculator treats both dates as midnight UTC, so a trip that crosses a daylight saving boundary still has the same number of days regardless of the local clock.
- • Public holidays are not skipped when Weekdays Only is on, so a five-day business interval that includes a national holiday will still report 5. Plug in a custom holiday calendar for statutory deadlines.
- • Months and years use the average-day constants, so a one-month gap from January 15 to February 15 is shown as 1.00 month, not the 31 actual days in the range. Use the integer day count for exact billing.
According to Wikipedia - Julian year (astronomy), the Julian year equals 365.25 days, which is the standard constant used to express months and years in approximate form.
Frequently Asked Questions
Q: How do I calculate the number of days between two dates?
A: Pick a From date and a To date in the calculator, leave the unit on Days, and turn off Include End Date for the default exclusive count. The answer is the integer number of days between the two dates, with the same value also shown in weeks, months, and years for quick reference.
Q: Does the number of days calculator include the end date?
A: By default the end date is treated as a boundary and is not counted, which matches how most spreadsheets work. Switch Include End Date to Yes to add one day so both the start and end dates are counted, which is the convention most hotels, courts, and rental contracts use.
Q: How many business days are there in a year?
A: On average there are about 261 business days in a common year, but the exact number changes every year because of how weekends fall. 2026 has 261 weekdays, leap years add one more, and you should subtract any public holidays that fall on a weekday.
Q: How do I add or subtract a number of days from a date?
A: Fill in the From date or the To date, leave the other date blank, and type the number of days, weeks, months, or years in the Time Between field. The calculator solves for the missing date and shows it in the result panel as soon as you change any input.
Q: How many days are in a month on average?
A: On average there are 30.4375 days in a month, which comes from dividing the 365.25-day Julian year by 12. Real months range from 28 to 31 days, so the average is a convenient way to quote a gap in months without listing every calendar month.
Q: How do I count only weekdays between two dates?
A: Set Weekdays Only to Yes and the calculator will walk day by day through the interval and skip Saturdays and Sundays. Use it for payroll, project lead time, and any deadline that does not tick on the weekend.