Number of Days Calculator (Calendar & Business Days)

Count days between any two dates with inclusive or exclusive rules business day logic custom weekends and holiday files Add or subtract days compare ranges export CSV or PDF copy links and visualize results Built for accuracy speed accessibility and SEO with timezone support and clear explanations for every total. Works with PWA install.

Select dates to begin · Inclusive rules configurable

1) Choose your range


2) Business day rules

Upload CSV (dates like 2025-08-31) or ICS calendar files. Holidays count only if they fall on counted weekdays.

3) Count specific weekdays (optional)

Leave all unchecked to ignore this filter. If any are checked, we will also report a count of just those weekdays in the range.

4) Add/Subtract days

Positive adds days to the start date to create a new end date. When business mode is on, only business days are counted.

Results

Calendar days

Based on inclusive/exclusive settings.

Business days

Excludes selected weekends and uploaded holidays.

Weekdays / Weekend

/
Weekdays = non-weekend days per your pattern.

Selected weekdays count

Only if boxes above are checked.

Weeks & days

Convenient breakdown.

ISO Duration

PnYnMnDTnHnM format.

Start details
Day-of-year
ISO week
End details
Day-of-year
ISO week
Other
Holidays in range:
Midpoint date:
Next business day after start:
Previous business day before end:

How This Number of Days Calculator Works (Formulas & Logic)

This tool is designed to give accurate day counts across a wide range of real‑world cases—simple calendar differences, business days with custom weekends and holidays, selected weekday tallies, and add/subtract operations that respect your chosen rules. Below is a concise technical explanation so you can validate or reference the math in reports and spreadsheets.

1) Calendar Days (Inclusive/Exclusive)

When times are off, each date is normalized to UTC midnight to prevent daylight‑saving irregularities. Let S and E be the normalized start and end. The base span in days is floor((E − S) / 86,400,000). Inclusive options then adjust endpoints: days = base + (includeStart ? 1 : 0) + ((includeEnd && (!sameDay || !includeStart)) ? 1 : 0). This yields the expected result for same‑day ranges and long spans alike.

2) Business Days (Weekends & Holidays)

Business days are counted by iterating the dates that survive your inclusive rules, then excluding any day whose weekday matches the selected weekend pattern or whose Y‑M‑D appears in the holiday set. This works for Sat–Sun, Fri–Sat, Thu–Fri, one‑day weekends, or a fully custom mix.

ModeWhat it countsNotes
Calendar daysEvery date between start and endEndpoints controlled by “Include start/end.”
Business daysNon‑weekend, non‑holiday datesCustom weekends + upload CSV/ICS holiday files.
Selected weekdaysOnly the ticked weekdaysUseful for Mon/Wed/Fri schedules or Sundays only.
Add/SubtractShift end date from start by N daysRespects business‑day logic when enabled.

3) Weekdays vs Weekend Counts

With your chosen weekend set (e.g., {Sat, Sun}), the tool classifies every included date as weekday or weekend. Summations are simple tallies after endpoint rules are applied.

Weekend patternEncoded valueMeaning
Saturday & Sunday6,0Most regions
Friday & Saturday5,6Common in parts of MENA
Thursday & Friday4,5Some organizations/regions
Sunday only0Treat only Sunday as weekend
Saturday only6Treat only Saturday as weekend
CustomcustomPick any mix of Mon–Sun

4) ISO Duration, Day‑of‑Year, and ISO Week

The ISO‑8601 duration shows a human‑friendly breakdown like PnYnMnDTnHnM derived by progressively accounting for years and months on a UTC calendar, then allocating remaining days and optional hours/minutes. Day‑of‑year (DOY) is the 1‑based index from Jan 1, and ISO week uses the “Thursday rule,” ensuring each week belongs to the year containing its Thursday.

5) Worked Example

Suppose you set Start = 2025‑01‑10 and End = 2025‑02‑02, include both endpoints, weekend = Sat–Sun, and add holidays: 2025‑01‑26. Calendar days are computed as described above. Weekdays/weekend results classify each date; business days exclude Saturdays, Sundays, and 2025‑01‑26. If you then “Shift by 10” with business mode on, the end date advances by 10 business days, skipping weekends and the holiday.

Spreadsheet equivalentExcel / Google Sheets formulaNotes
Calendar days (inclusive)DATEDIF(S, E, "d") + 1Adjust −1/0/ +1 for your inclusion rules.
Business daysNETWORKDAYS.INTL(S, E, weekend_code, holidays)Weekend code maps to your chosen pattern.
Add N business daysWORKDAY.INTL(S, N, weekend_code, holidays)Returns the shifted date.

Tip: Use the CSV export for quick audit trails and the date‑list export when you need to enumerate every counted date for compliance, rostering, or ticket SLA verification.

Related Calculators

30 Min Calculator90 Day CalculatorAdd Days CalculatorAdding Hours and Minutes CalculatorAge in Minutes CalculatorAge in Years CalculatorBirthday Countdown CalculatorCalendar Countdown Calculatorcm to mm Ring Size ConverterCountdown Calculator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.