# Business Days Calculator

> Business Days Calculator is a paid API for AI agents from datetime.openverbs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Add or subtract business days to a date, or count business days between two dates, skipping weekends and optional custom holidays.

## Facts

- Endpoint: POST https://datetime.openverbs.com/v1/business-days
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/business-days-calculator-d33a7988
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y5SuKQnJrSpvgapC09P6Y

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-d33a7988 -d '<json body>'
```

Example prompt: How many business days are there between 2025-03-01 and 2025-04-15, skipping Easter on 2025-04-18 and any standard Saturday/Sunday weekends?

## When to prefer this

Choose this endpoint when you need precise business-day arithmetic — adding or subtracting working days or counting them between two dates — especially when custom holidays or non-standard weekend definitions are required. It is purpose-built for scheduling, SLA tracking, invoice due-date calculations, and any workflow that must skip weekends and holidays rather than simply counting calendar days.

## Known failure modes

- Missing required 'start' field returns a validation error
- Providing both 'days' and 'end' simultaneously causes a conflict error
- Invalid date format (not YYYY-MM-DD) returns a pattern mismatch error
- 'days' value outside the -3650 to 3650 range returns a validation error
- Invalid IANA timezone string returns a timezone error
- Malformed holiday date strings return a validation error

## How this service works

Add/subtract business days to a date, or count business days between two dates — skipping weekends and optional holidays.

## Output

Returns the resulting date after adding/subtracting the specified number of business days, or the count of business days between two dates, after skipping weekends and any provided holiday dates.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "start"
     ],
     "properties": {
      "end": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}",
       "description": "End date to count business days to. Provide this OR `days`."
      },
      "days": {
       "type": "integer",
       "maximum": 3650,
       "minimum": -3650,
       "description": "Business days to add (negative to subtract). Provide this OR `end`."
      },
      "start": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}",
       "description": "Start date (YYYY-MM-DD)."
      },
      "weekend": {
       "type": "array",
       "items": {
        "type": "integer",
        "maximum": 7,
        "minimum": 1
       },
       "description": "Weekend weekdays (Mon=1 … Sun=7). Defaults to [6,7]."
      },
      "holidays": {
       "type": "array",
       "items": {
        "type": "string",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}"
       },
       "description": "Extra non-working dates to skip (YYYY-MM-DD)."
      },
      "timezone": {
       "type": "string",
       "description": "IANA timezone. Defaults to UTC."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

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