# fittings Business Days Calculator

> fittings Business Days Calculator is a paid API for AI agents from fittings.sh, paid per call via x402, $0.006649/call, status unknown (last checked 2026-09-14).

Add or subtract N business days from a date, skipping weekends and optional holiday dates, returning the resulting business date.

## Facts

- Endpoint: GET https://fittings.sh/v1/time/business-days
- Price: $0.006649/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fittings-business-days-calculator-7ddd6e34
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dNN0D2G9xAhPk8hLP5FKY

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 fittings-business-days-calculator-7ddd6e34
```

Example prompt: What date is 10 business days from 2025-06-01, skipping July 4th (2025-07-04)?

## When to prefer this

Choose this endpoint when you need to compute a calendar date offset by a specific number of business days, accounting for weekends and custom holiday lists. It is ideal for SLA tracking, payment settlement windows, regulatory deadlines, and any scheduling logic that must skip non-working days. Prefer this over generic date-math libraries when you want a hosted, stateless, API-callable solution with holiday injection support, without managing calendar logic yourself.

## Known failure modes

- Invalid date format (non-ISO YYYY-MM-DD) returns an error
- Missing required 'date' or 'days' query parameters returns a 400-level error
- Malformed holidays array values cause a parsing error
- Very large day offsets may behave unexpectedly if not bounded by the service
- Network or upstream timeout returns a 5xx error

## How this service works

Add or subtract N business days from a date, skipping weekends and any supplied holiday dates.

## Output

Returns the resulting date after adding or subtracting the specified number of business days from the input date, with weekends and any provided holiday dates excluded from the count. The response is a date in ISO 8601 format (YYYY-MM-DD).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "date",
      "days"
     ],
     "properties": {
      "date": {
       "type": "string",
       "description": "ISO date YYYY-MM-DD"
      },
      "days": {
       "type": "number",
       "description": "Business days to add; negative subtracts"
      },
      "holidays": {
       "type": "array",
       "description": "Optional ISO dates to also skip"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fittings-business-days-calculator-7ddd6e34/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fittings.sh](https://www.zero.xyz/host/fittings.sh/llms.txt)
