# AgentTools Business Days Calculator

> AgentTools Business Days Calculator is a paid API for AI agents from agentstoolshub.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-12).

Counts working days (Monday–Friday) between two dates, excluding weekends and optionally excluding public holidays for a specified country.

## Facts

- Endpoint: GET https://agentstoolshub.com/api/v1/live/business-days?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-business-days-calculator-5dc2a89b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DhFRXovqX2GKYJsDxDvih

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 agenttools-business-days-calculator-5dc2a89b
```

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

## When to prefer this

Use this endpoint when you need a precise count of working days between two dates, especially when you need to exclude public holidays for a specific country. It is ideal for deadline calculations, SLA tracking, invoice payment terms, HR notice periods, and project scheduling. Prefer this over manual date arithmetic whenever country-specific holiday data matters.

## Known failure modes

- Missing start or end date parameter returns a 400 error
- Invalid date format (non-ISO 8601) causes a parse error
- Unsupported or invalid country code returns an error or falls back to no holiday exclusion
- End date before start date may return zero or a negative count
- Network errors to Nager.Date public holiday API could cause holiday lookup to fail

## How this service works

Count business days (Mon–Fri) between two dates, with weekend and holiday breakdown. Provide a country code and real public holidays (via Nager.Date) are excluded too. Use this when an agent needs to working days between dates, optionally minus public holidays.

## Output

Returns a structured object containing the total number of business (working) days between the two dates, the number of weekend days excluded, the number of public holidays excluded (if a country code was provided), and a list of the specific public holidays that fell within the 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"
     ],
     "properties": {
      "end": {
       "type": "string",
       "description": "End date"
      },
      "start": {
       "type": "string",
       "description": "Start date"
      },
      "country": {
       "type": "string",
       "description": "Excludes that country's public holidays"
      }
     }
    }
   },
   "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/agenttools-business-days-calculator-5dc2a89b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentstoolshub.com](https://www.zero.xyz/host/agentstoolshub.com/llms.txt)
