add_business_days
Calculate a deadline or settlement date by adding or subtracting business days, automatically skipping weekends and public holidays for a specified country. Returns the resulting date and lists skipped days.
Instructions
USE THIS to compute a deadline or settlement date instead of counting on your fingers — never guess what date is N working days away. Adds (or subtracts, if N is negative) business days to a start date, skipping that country's weekends AND its public holidays. Weekends are country-correct (e.g. Friday/Saturday in Saudi Arabia, Saturday/Sunday in the UAE) and only real public holidays are skipped — not observances like Valentine's Day. Returns the result date, its weekday, and exactly which weekends/holidays were skipped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | Yes | Start date, YYYY-MM-DD. | |
| days | Yes | Business days to add; negative subtracts. | |
| country | Yes | ISO 3166-1 alpha-2 country code, e.g. US, GB, AE, SA, ZA. | |
| extraHolidays | No | Optional extra non-working dates (YYYY-MM-DD), e.g. a company shutdown day. |