# Agent402 Business Day Counter (Static Holidays)

> Agent402 Business Day Counter (Static Holidays) is a paid API for AI agents from agent402.co.uk, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Counts pure business days between two dates for a given country, excluding weekends and static public holidays, across US/DE/FR/IE/JP/AU/SG.

## Facts

- Endpoint: GET https://agent402.co.uk/v1/time/business-days-static
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-business-day-counter-static-holidays-0b56979b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NLBM-ADuHVYhb4_lHcSU2

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 agent402-business-day-counter-static-holidays-0b56979b
```

Example prompt: How many business days are there between March 3, 2025 and April 25, 2025 in the US, excluding holidays?

## When to prefer this

Choose this endpoint when you need a fast, cheap ($0.001), deterministic business-day count using static holiday calendars — ideal for SLA math, settlement calculations, payroll windows, or any offline scheduling logic across US, Germany, France, Ireland, Japan, Australia, or Singapore. Prefer it over general-purpose date libraries when you need a consistent, pre-validated holiday dataset for multiple regions without maintaining your own holiday lists.

## Known failure modes

- Invalid or missing date format (not YYYY-MM-DD) returns validation error
- Unsupported country code outside US/DE/FR/IE/JP/AU/SG returns error
- End date before start date may return zero or error
- Network timeout on rare occasions
- Payment failure via x402 protocol returns 402 before any computation

## How this service works

Don't burn tokens on deterministic work. Go/no-go jobs first: payout preflight, text firewall (PII/secrets), budget check — then rails, calendars, finmath. x402 USDC on Base. UK + global. agent402.co.uk — not agent402.tools. $0.001–$0.002 USDC on Base. No API keys.

## Output

Returns a JSON object with a 'valid' boolean, the 'country' code used, and 'business_days' integer representing the count of non-weekend, non-holiday days in the requested 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",
     "required": [
      "start",
      "end",
      "country"
     ],
     "properties": {
      "end": {
       "type": "string",
       "description": "YYYY-MM-DD"
      },
      "start": {
       "type": "string",
       "description": "YYYY-MM-DD"
      },
      "country": {
       "type": "string",
       "description": "US|DE|FR|IE|JP|AU|SG"
      },
      "exclude_holidays": {
       "type": "string",
       "description": "default true"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "valid": true,
  "country": "US",
  "business_days": 19
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-business-day-counter-static-holidays-0b56979b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.co.uk](https://www.zero.xyz/host/agent402.co.uk/llms.txt)
