1. Days Between Two Dates (Inclusive vs. Exclusive)
Range Math
Exclusive: From October 1 to October 15 is 15 − 1 = 14 days (does not count the final day).
Inclusive: Including October 15 adds 1 day, yielding exactly 15 active days (15 − 1 + 1 = 15 days).
Total Days = End Date − Start Date (+ 1 if inclusive)
2. Net 30 / Net 60 Invoice Payment Due Dates
Commercial
An invoice issued on May 15 with Net 30 payment terms is due on June 14 (30 days later). A Net 60 term falls on July 14.
Due Date = Invoice Date + 30 Days (or + 60 / 90 Days)
3. Month-End Rollover Math (Clamping)
Calendar Rules
Adding 1 month to January 31 cannot result in February 31. Our engine accurately clamps to the final day of the target month: February 28 (or February 29 in a leap year).
Target Day = Min(Source Day, DaysInMonth(Target Year, Target Month))
4. Working Days & Weekend Exclusions
Productivity
For a 14-day calendar window (2 full weeks), exactly 10 days are working days (Monday through Friday) and 4 days are weekends (Saturdays and Sundays).
Working Days = Total Days − Saturdays − Sundays
In-Depth Guide:
Read our complete guide to calendar mathematics:
Working Days, Age & Date Calculators Toolkit →