Every team that touches payroll, delivery promises, support SLAs, or renewal dates eventually writes the same fragile function: loop forward a day at a time, skip Saturday and Sunday, check a holiday list, repeat. The holiday list is the easy part. You can get one for free, and you should, because raw lookup was never the hard part.
The bugs live in the rules around the list. Independence Day falls on a Saturday, so the office actually closes on the Friday, and your loop counts the Friday as a business day. A client's team works a Friday to Saturday weekend. Your own company shuts down between Christmas and New Year, a closure that exists in no public dataset anywhere. And when a customer asks why their deadline landed on Tuesday instead of Monday, "the function said so" is not an answer anyone can audit.
DayRules is the API we built for that function.…