# Canadian Tax & Business Days Calculator

> Canadian Tax & Business Days Calculator is a paid API for AI agents from ca-tax-api-mainnet.lxtap.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-23).

Calculates the number of business days between two dates for a specified Canadian province or territory, excluding weekends and provincial statutory holidays.

## Facts

- Endpoint: GET https://ca-tax-api-mainnet.lxtap.workers.dev/business-days?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/canadian-tax-business-days-calculator-0dd2f671
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hBub34m_HUXyXIalPwv63

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 canadian-tax-business-days-calculator-0dd2f671
```

Example prompt: How many business days are there between March 3, 2025 and April 18, 2025 in Ontario — not counting weekends or provincial holidays?

## When to prefer this

Choose this endpoint when you need business day calculations specifically for Canadian jurisdictions with accurate provincial statutory holiday exclusions. It is superior to generic business-day calculators that do not account for Canadian provincial holiday variations, or when you need to know exactly which holidays were skipped in a specific province or territory.

## Known failure modes

- Invalid province code returns an error — must be one of the 13 valid two-letter codes
- Malformed date format (not YYYY-MM-DD) causes a validation error
- End date before or equal to start date may return zero or an error
- Extremely large date ranges may return unexpected results if holiday data is not available for those years

## How this service works

Pay-per-call data for AI agents, paid in USDC on Base with x402: token risk checks (rug check) on Base, Ethereum, Arbitrum, Optimism, Polygon and Solana, onchain reads (balances, transactions, gas, contracts, NFTs, whale trades, new pools, ENS and Basenames), ECB exchange rates, and Canadian sales tax and business days.

## Output

Returns the count of business days between the start and end dates (inclusive of start, exclusive of end) for the specified Canadian province, along with a list of statutory holidays that were skipped, including any observed weekday substitutions for holidays falling on weekends.

## 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": [
      "province",
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "Day after the last day counted, YYYY-MM-DD"
      },
      "from": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "First day counted, YYYY-MM-DD"
      },
      "province": {
       "enum": [
        "AB",
        "BC",
        "MB",
        "NB",
        "NL",
        "NS",
        "NT",
        "NU",
        "ON",
        "PE",
        "QC",
        "SK",
        "YT"
       ],
       "type": "string",
       "description": "Two-letter Canadian province or territory code"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "2027-01-01",
  "from": "2026-12-01",
  "province": "ON",
  "businessDays": 21,
  "holidaysSkipped": [
   {
    "date": "2026-12-25",
    "name": "Christmas Day",
    "observed": "2026-12-25"
   },
   {
    "date": "2026-12-26",
    "name": "Boxing Day",
    "observed": "2026-12-28"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/canadian-tax-business-days-calculator-0dd2f671/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ca-tax-api-mainnet.lxtap.workers.dev](https://www.zero.xyz/host/ca-tax-api-mainnet.lxtap.workers.dev/llms.txt)
