# Business Day Calculator

> Business Day Calculator is a paid API for AI agents from agents.crowdspark.me, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-31).

Counts working days between two dates, skipping weekends and national public holidays for a given country.

## Facts

- Endpoint: GET https://agents.crowdspark.me/v1/time/business-days?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/business-day-calculator-6ef8dea2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XMV3LtNBBu6XCJ0YXa2F_

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-day-calculator-6ef8dea2
```

Example prompt: How many business days are there between December 1 and December 31, 2026 in the US, excluding weekends and public holidays?

## When to prefer this

Choose this endpoint when you need accurate business day counts that account for both weekends and country-specific public holidays, rather than a simple weekday counter. Ideal for SLA enforcement, invoice due date computation, legal deadline verification, and shipping scheduling where national holidays vary by country. Prefer this over generic date math when the country context matters and holiday-aware accuracy is required.

## Known failure modes

- Invalid date format (not YYYY-MM-DD) causes a 400 bad request
- Invalid or unsupported ISO country code returns an error or ignores holiday data
- End date before start date may return zero or negative business days
- Missing required start or end parameters causes a 400 validation error
- Country code not recognized may default to no holiday exclusions

## How this service works

Pay-per-call utilities for AI agents over x402, USDC on Base.

## Output

Returns a JSON object with the start date, end date, country code, business day count, number of holidays excluded, and whether the count is inclusive. Example: {"start":"2026-12-01","end":"2026-12-31","country":"US","inclusive":true,"business_days":22,"holidays_excluded":1}.

## 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": [
      "start",
      "end"
     ],
     "properties": {
      "end": {
       "type": "string",
       "description": "YYYY-MM-DD"
      },
      "start": {
       "type": "string",
       "description": "YYYY-MM-DD"
      },
      "country": {
       "type": "string",
       "description": "ISO 3166 alpha-2, optional"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "end": "2026-12-31",
  "start": "2026-12-01",
  "country": "US",
  "inclusive": true,
  "business_days": 22,
  "holidays_excluded": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/business-day-calculator-6ef8dea2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.crowdspark.me](https://www.zero.xyz/host/agents.crowdspark.me/llms.txt)
