next_business_day
Calculate the next business day on or after a specified date, excluding weekends and public holidays. Supports country-specific calendars and optional subdivision for regional holidays.
Instructions
Return the next business day on/after (inclusive) or strictly after date.
Use this to move forward to the soonest working day — skipping weekends and public holidays.
Args:
date: ISO 8601 date string (YYYY-MM-DD) to start from.
country: ISO 3166-1 alpha-2 code (case-insensitive, normalized to upper).
inclusive: When True, date itself qualifies if it is a business day.
When False (default), the search starts the day after date.
subdiv: Optional country-specific subdivision code (case-sensitive; see
get_supported_countries). When omitted, only nation-wide holidays are
considered. Example: country="DE", subdiv="BY" will skip Epiphany
(Jan 6) in Bavaria.
Returns: dict with keys: input_date, next_business_day, country, subdiv (only if provided), skipped_days (number of non-business days traversed).
Raises: ValueError: on invalid date, unknown country/subdiv, or if no business day is found within ~10 years.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| country | Yes | ||
| inclusive | No | ||
| subdiv | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||