Guides

How Do I Include or Exclude Weekdays in a Day Count?

Learn how the add-days calculator counts chosen weekdays: Include and Exclude modes, the custom-time formula, 53 Mondays and 209 days in 2024, plus four FAQs.

Miryori Editorial Team2 min read
Try the Add Days Calculator

Sometimes a count should include only certain weekdays — for example, how many Mondays fall in a period, or how many days remain after removing Fridays through Sundays. The add-days calculator handles both questions with its custom-time feature.

The custom-time result in the add-days calculator counts chosen weekdays between two dates. Use Include to count only the named days, or Exclude to drop them. From January 1 to December 31, 2024, counting Mondays alone gives 53, while excluding Fridays, Saturdays and Sundays leaves 209 days. Across 2024, the weekend total is 104 days, found as 52 weeks times two.

What formula counts selected weekdays?

The calculator defines its custom-time output as:

custom time=includeCountCustom(date1, date2, include/exclude, include end date, weekday flags)\text{custom time} = \text{includeCountCustom}\left(\text{date1},\ \text{date2},\ \text{include/exclude},\ \text{include end date},\ \text{weekday flags}\right)

Each weekday selector contributes a flag of 1 when that day is ticked and 0 when it is not; the Include/Exclude choice itself is 1 for Include and 0 for Exclude, and choosing Exclude inverts the weekday flags. The named days map to day-of-week numbers Monday 1, Tuesday 2, Wednesday 3, Thursday 4, Friday 5, Saturday 6 and Sunday 0. The function walks the span, adds one for every matching day, and applies the Include end date setting to the final day.

Which weekday options change the result?

Using the calculator's January 1 to December 31, 2024 example, the named-weekday options produce:

Option selected Range Custom time
Include Mondays only Jan 1–Dec 31, 2024 53 days
Exclude Fridays, Saturdays, Sundays Jan 1–Dec 31, 2024 209 days
Weekend days in the full year 2024 104 days

The first two rows come from the same date pair with opposite weekday modes; the third is the full-year weekend check described in the calculator's FAQ.

Worked example: Mondays and removed days in 2024

Enter January 1, 2024 in From and December 31, 2024 in To. Under "Include / exclude some week days", choose Include and tick only Mondays: custom time shows 53 days. Switch to Exclude and tick Fridays, Saturdays and Sundays instead: the result becomes 209 days. As a separate check, the weekend total for 2024 is 52 × 2 = 104 days, with no weekend days overflowing the counted weeks.

FAQ

How many weekend days are there in 2024?

There are 104 weekend days. There are 52 weeks in the year, so 52 × 2 = 104; no weekend days overflow the calculated weeks, so the total stays 104.

How many Mondays fall between January 1 and December 31, 2024?

Ticking Mondays in Include mode gives 53 Mondays for that range, shown in the Custom time field.

What is the difference between Include and Exclude?

Include counts only the weekdays you select; Exclude removes the weekdays you select from the total. The same weekday flags drive both modes.

Can I select more than one weekday?

Yes. The calculator's Exclude example selects Fridays, Saturdays and Sundays together and returns 209 days for the 2024 range.

References

  • Add Days Calculator source documentation on custom time, weekday flags and the 53- and 209-day 2024 examples.
  • Calendar arithmetic references on counting named weekdays across a date span.
  • General arithmetic references on weeks per year and weekend-day totals.
Calculator

Add Days Calculator

Add Days: calculator to add days between two given dates. Free, fast and private.

Try the Add Days Calculator