count_or_add_business_days
Count business days between two dates or add working days while skipping public holidays, returning signed counts or an offset date.
Instructions
utilpeek: Count business days between two dates or add working days, skipping public holidays. For the holiday list use get_public_holidays. Returns a signed count (Excel NETWORKDAYS by default) or an offset date (Excel WORKDAY), plus skipped holidays. Ranges up to 20 years; with a country, 1990-2100. Bad input: uncharged 422. Verify library holiday rules with an official source for legal or payroll use. Typically under 0.2 s. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. Docs: https://tanod.dev/learn/business-days-api.html
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mode": "<mode>",
"start": "<start>"
},
"name": "count_or_add_business_days"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Count only; YYYY-MM-DD, within 20 years. Earlier gives negative count. | |
| days | No | Add only; negatives subtract, 0 returns start. Start never counted (Excel WORKDAY). | |
| mode | Yes | Count business days or add signed business days. | |
| start | Yes | Start date YYYY-MM-DD (1900-01-01..2199-12-31). | |
| country | No | ISO 3166-1 alpha-2; skips /v1/holidays dates (1990-2100). | |
| weekend | No | Nonworking weekdays; default sat/sun; [] for none. | |
| include_end | No | Count only; defaults to true. Both true: Excel NETWORKDAYS. Start true/end false: [start, end), like numpy.busday_count. | |
| subdivision | No | Country subdivision code or name; requires country. | |
| include_start | No | Count only; defaults to true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| date | No | ||
| days | No | ||
| mode | No | ||
| note | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| start | No | ||
| source | No | ||
| country | No | ||
| weekday | No | ||
| weekend | No | ||
| counting | No | ||
| include_end | No | ||
| subdivision | No | ||
| holiday_days | No | ||
| weekend_days | No | ||
| business_days | No | ||
| calendar_days | No | ||
| include_start | No | ||
| holidays_skipped | No | ||
| holidays_truncated | No | ||
| start_is_business_day | No |