# Business-Day Calculator (US & JP)

> Business-Day Calculator (US & JP) is a paid API for AI agents from abi-mainnet-sandbox.benjaminbu.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Counts the number of business days between two dates for the US or Japan, excluding weekends and public holidays.

## Facts

- Endpoint: GET https://abi-mainnet-sandbox.benjaminbu.workers.dev/v1/business-days
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/business-day-calculator-us-jp-a106c99b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_s_rD3LQgusxDLO8Zm-uKP

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-us-jp-a106c99b
```

Example prompt: How many business days are there between March 1, 2025 and March 31, 2025 in the US?

## When to prefer this

Use this endpoint when you need a fast, authoritative count of business days for the US or Japan, properly accounting for country-specific public holidays. Prefer it over generic weekday-counting logic for payroll, SLA tracking, project scheduling, or financial settlement windows where holiday accuracy matters.

## Known failure modes

- Missing required query parameters (country, start, end) returns an error
- Unsupported country code (not US or JP) returns a validation error
- Invalid date format (not YYYY-MM-DD) causes a parse error
- Start date after end date may return zero or an error
- Payment failure or missing x402 payment header returns 402 Payment Required

## How this service works

Business-day calculator

## Output

Returns the number of business days (excluding weekends and country-specific public holidays) between the given start and end dates for the specified country (US or JP).

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/business-day-calculator-us-jp-a106c99b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from abi-mainnet-sandbox.benjaminbu.workers.dev](https://www.zero.xyz/host/abi-mainnet-sandbox.benjaminbu.workers.dev/llms.txt)
