Tool detail
2s
Calculates business days for a country: shifts a date by N business days, counts days between two dates, or checks one date, honoring holidays.
Categories: Utilities
Use when
- add or subtract business days from a date for a country
- count business days between two dates, holiday-aware
- check if a date is a business day and which holiday it falls on
Not for
- not a raw holiday list; see the holidays endpoint for that
Inputs
GET query params: country, start (required); addDays XOR end, region, weekend, types (optional)
Admitted input schema
{
"type": "object",
"properties": {
"addDays": {
"type": "string",
"minLength": 0,
"maxLength": 4096,
"description": "Signed business days to add (XOR with end)."
},
"country": {
"type": "string",
"minLength": 0,
"maxLength": 4096,
"description": "ISO 3166-1 alpha-2 country code."
},
"end": {
"type": "string",
"minLength": 0,
"maxLength": 4096,
"description": "End date YYYY-MM-DD to count business days to (XOR with addDays)."
},
"region": {
"type": "string",
"minLength": 0,
"maxLength": 4096,
"description": "Optional subdivision code, e.g. CA, BY."
},
"start": {
"type": "string",
"minLength": 0,
"maxLength": 4096,
"description": "Anchor date, YYYY-MM-DD."
},
"types": {
"type": "string",
"minLength": 0,
"maxLength": 4096,
"description": "Optional holiday types treated as closures. Default public,bank."
},
"weekend": {
"type": "string",
"minLength": 0,
"maxLength": 4096,
"description": "Optional weekend days, comma-separated. Default sat,sun."
}
},
"required": [
"country",
"start"
],
"additionalProperties": false
}Endpoint
- Method
GET- URL
https://2s.io/api/calendar/business-days
Payment
- Protocol
- x402
- Listed price
- 0.0025 USDC per call on Base
- Payment method
- exact
- Network
- eip155:8453
- Asset
- 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.
Source
- Directory
- Coinbase x402 Bazaar
- Record
- GET https://2s.io/api/calendar/business-days
- Retrieved
- 2026-09-30T20:37:07.382Z
- Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524- Catalog built
- 2026-09-30T22:31:58.034Z