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:
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:
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 complete weeks, contributing 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 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).