# Business Days Calculator

> Business Days Calculator is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Add or subtract business days to/from a date, or count working days between two dates, with weekend and custom holiday awareness.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/business-days-calc
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/business-days-calculator-b3734509
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZdBARyos5h6hrEkXwITJH

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability business-days-calculator-b3734509 -d '<json body>'
```

Example prompt: What date is 10 business days from March 14, 2025, excluding Good Friday and Easter Monday as holidays?

## When to prefer this

Choose this endpoint when you need reliable, calendar-aware business day arithmetic that respects weekends and custom holidays — especially for SLA tracking, invoice due dates, delivery estimates, or any scheduling workflow. Prefer it over generic date-math libraries when you need a simple, hosted, pay-per-call solution without managing holiday calendars in your own codebase.

## Known failure modes

- Invalid date format — returns error if dates are not parseable ISO-8601 strings
- Invalid day offset — non-integer or out-of-range business day count
- Malformed holiday list — unrecognized date formats in custom holidays array
- Missing required fields — error if neither an offset nor an end date is provided
- Network timeout or service unavailability returns 5xx error

## How this service works

Add/subtract business days to a date, or count working days between two dates. Weekend- and custom-holiday-aware (0=Mon..6=Sun).

## Output

Returns either the resulting date after adding/subtracting the specified number of business days, or the count of working days between two given dates. Accounts for weekends (Saturday and Sunday by default) and any custom holidays provided in the request.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "op": {
   "type": "string"
  },
  "days": {
   "type": "number"
  },
  "start": {
   "type": "string"
  },
  "holidays": {
   "type": "array"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "2026-01-08"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/business-days-calculator-b3734509/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
