Guides

How Do I Count 30 Working Days?

Learn how the 30 day calculator counts working days: the floor-and-remainder formula, weekday toggles, Include or Exclude, and a 30-day worked example.

Miryori Editorial Team3 min read
Try the 30 Day Calculator

A plain 30-day count includes weekends and every other calendar day. The Omni calculator also handles the working-day version of the question, where whole weeks contribute five weekdays and you can choose which individual weekdays to include or skip.

To count 30 working days, the calculator uses two relations instead of simple calendar addition. The working-day formula takes each full week in the span as five weekdays, then counts the leftover days separately; in symbols, time working equals the floor of the day span divided by seven, multiplied by five, plus a getRemaining term. A second formula, custom time, lets you include or exclude named weekdays and decide whether the end date counts.

What is the working-days formula?

Omni states the working-day calculation as:

time working=⌊date2−date17⌋×5+getRemaining(date1+⌊date2−date17⌋×7, date2, include end date)\text{time working} = \left\lfloor \frac{\text{date}_2 - \text{date}_1}{7} \right\rfloor \times 5 + \text{getRemaining}\left(\text{date}_1 + \left\lfloor \frac{\text{date}_2 - \text{date}_1}{7} \right\rfloor \times 7,\ \text{date}_2,\ \text{include end date}\right)

The floor term counts complete seven-day blocks between the two dates. Each block contributes five working days, and getRemaining counts the days left over after those full weeks, using the include-end-date setting to decide whether the final day is counted.

How do the weekday toggles work?

For fully custom counts, Omni uses a second equation:

custom time=includeCountCustom(date1, date2, include/exclude days, include end date, Mondays, Tuesdays, Wednesdays, Thursdays, Fridays, Saturdays, Sundays)\text{custom time} = \text{includeCountCustom}(\text{date}_1,\ \text{date}_2,\ \text{include/exclude days},\ \text{include end date},\ \text{Mondays},\ \text{Tuesdays},\ \text{Wednesdays},\ \text{Thursdays},\ \text{Fridays},\ \text{Saturdays},\ \text{Sundays})

Each weekday has its own toggle with two possible values, taken from the calculator's datasets:

Toggle Value when selected Value when cleared
Mondays 1 0
Tuesdays 1 0
Wednesdays 1 0
Thursdays 1 0
Fridays 1 0
Saturdays 1 0
Sundays 1 0

The include/exclude switch chooses whether the selected weekdays are counted or skipped.

What does Include or Exclude mean?

The include/exclude dataset has two options: Include (value 1) and Exclude (value 0). With Include chosen, the weekdays you switch on are the ones counted toward the total. With Exclude chosen, those weekdays are left out. The separate include-end-date option (1 = include, 0 = exclude, the default) decides what happens to the final day of the span.

Example: 30 days counted as working days

Suppose the span between the two dates is 30 days. The floor term gives ⌊30/7⌋=4\lfloor 30/7 \rfloor = 4 complete weeks, contributing 4×5=204 \times 5 = 20 working days. The remaining days are handed to getRemaining, which counts them according to the weekday pattern and the include-end-date setting. The result is a working-day total shorter than the 30 calendar days whenever weekends fall inside the span.

FAQ

Can I exclude weekends from a 30-day count?

Yes. The working-day formula counts five days per full week, and the Saturday and Sunday toggles let you decide how those days are treated in the remaining portion.

Does the end date count in a working-day span?

That is controlled by the include-end-date option: value 1 counts the final date, value 0 does not, and 0 is the default.

Can I count only selected weekdays?

Yes. The custom-time formula combines the include/exclude switch with the seven individual weekday toggles, so you can build a count from exactly the days you choose.

How many working days does one full week contribute?

Five, as shown by the ×5\times 5 factor applied to each complete seven-day block in the working-day equation.

References

  • Omni 30 day calculator: working-day and custom-time equations, weekday and include/exclude datasets.
  • Omni 30 day calculator: variable list (time_working, custom_time, weekday toggles).
Calculator

30 Day Calculator

30 Day: use this 30 day calculator to determine what day it will be 30 days from today. Free, fast and private.

Try the 30 Day Calculator