# agent402.tools Business Days Counter

> agent402.tools Business Days Counter is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Counts working days (Monday–Friday) between two dates, with optional holiday exclusions

## Facts

- Endpoint: POST https://agent402.tools/api/business-days
- 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-tools-business-days-counter-0afc61b1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rgDgQSnLoIblbP7I0-2Yt

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-tools-business-days-counter-0afc61b1 -d '<json body>'
```

Example prompt: How many business days are there from January 6, 2025 to March 28, 2025, excluding January 20 and February 17 as holidays?

## When to prefer this

Use this endpoint when you need a precise count of working weekdays between two dates, especially when you need to exclude specific public or company holidays. Ideal for deadline calculations, project scheduling, SLA computations, or any workflow that requires knowing elapsed or remaining business days.

## Known failure modes

- Invalid date format causes 400 error — dates must be YYYY-MM-DD
- Missing 'from' or 'to' fields returns validation error
- End date before start date may return 0 or error
- Payment not included or insufficient USDC causes 402 Payment Required
- Malformed holiday array entries silently skipped or cause 400

## How this service works

Count business days (Mon–Fri) between two dates, inclusive of the start, exclusive of the end. Optional list of holiday dates to skip.

## Output

Returns a count of business days (Monday through Friday) between the provided start date (inclusive) and end date (exclusive), after skipping any dates in the optional holidays array.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "description": "End date"
  },
  "from": {
   "description": "Start date"
  },
  "holidays": {
   "description": "Optional array of YYYY-MM-DD to exclude"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "businessDays": 5,
  "calendarDays": 7
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-business-days-counter-0afc61b1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
