How working days are calculated
Instead of looping day-by-day (which breaks down on large ranges), Lasita splits the date span into whole 7-day weeks plus a 0β6 day remainder using your selected 7-day weekend mask:
workingDays = (fullWeeks Γ workdaysPerWeek + remainderWorkdays) β uniqueWorkdayHolidays
That guarantees the breakdown always balances cleanly: Working Days + Weekend Days + Holidays on Workdays = Total Calendar Days.
Regional weekend presets
- Sat + Sun (5 workdays/week): Standard corporate schedule across North America, Europe, Australia, and much of Asia.
- Fri + Sat (5 workdays/week): Common across Israel, Jordan, Egypt, Saudi Arabia, and several MENA regions.
- Sun only (6 workdays/week): Common for retail, manufacturing, and 6-day commercial calendars.
- Custom 7-day mask: Click any day pill (SunβSat) to match shift rotations or 4-day workweeks.