# Polyform Business Days Calculator

> Polyform Business Days Calculator is a paid API for AI agents from api.polyform.org, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-13).

Calculates the number of business days between two dates, excluding weekends and US federal holidays, and returns the list of holidays in that range.

## Facts

- Endpoint: GET https://api.polyform.org/v1/time/business-days?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/polyform-business-days-calculator-bda11c35
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fidgTRSRJW7-cf_ukO0Ch

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 polyform-business-days-calculator-bda11c35
```

Example prompt: How many business days are there between January 1, 2026 and February 1, 2026, skipping weekends and US federal holidays? Also tell me which holidays fall in that range.

## When to prefer this

Choose this endpoint when you need a reliable, pure-computation business day count that correctly accounts for both US federal holidays and weekends, especially when you also need the list of holidays in that range. Ideal for SLA calculations, contract durations, payroll scheduling, or any deadline arithmetic in a US business context. Prefer this over a generic date library when you need an authoritative US federal holiday list included in the response without maintaining your own holiday database.

## Known failure modes

- Missing or malformed start/end date parameters returns an error
- End date before start date may return 0 or an error
- Dates outside supported range may not return accurate holiday data
- Non-US holidays are not accounted for — result reflects only US federal holidays
- Payment failure via x402 returns HTTP 402 and the call is not completed

## How this service works

Business days between two dates (exclusive of end), skipping weekends and US federal holidays; also returns the holiday list in range. Pure computation. JSON.

## Output

Returns a JSON object with the start date, end date, total count of business days (excluding weekends and US federal holidays, with the end date itself excluded), and an array of holiday dates that fall within the range.

## 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",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "end": "2026-02-01",
  "start": "2026-01-01",
  "holidays": [
   "2026-01-01",
   "2026-01-19"
  ],
  "businessDays": 20
 }
}
```

## More

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