# Swedish Bank/Work Day Calculator

> Swedish Bank/Work Day Calculator is a paid API for AI agents from agentkit-x402.zenith-ops.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-28).

Calculates a future or past date by adding (or subtracting) a specified number of Swedish bank days or work days from a given start date

## Facts

- Endpoint: GET https://agentkit-x402.zenith-ops.workers.dev/v1/bank-days?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swedish-bank-work-day-calculator-d26f81c0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sdBxnTzVMIE0s2SXyvph8

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 swedish-bank-work-day-calculator-d26f81c0
```

Example prompt: What date falls exactly 5 Swedish bank days after December 23rd, 2026?

## When to prefer this

Use this endpoint when you need to compute Swedish banking or working day offsets — e.g. for invoice due dates, payroll scheduling, or financial settlement timelines governed by Swedish bank holidays. Prefer this over generic date arithmetic libraries when Swedish-specific bank holidays and business day rules must be respected.

## Known failure modes

- Missing required 'from' or 'add' query parameters returns an error
- Invalid date format (not YYYY-MM-DD) causes a parsing error
- 'add' value exceeding 1000 in absolute value is rejected
- Invalid 'mode' value (not 'bank' or 'work') may cause an error
- Payment not fulfilled via x402 USDC results in 402 response blocking access

## How this service works

Pay-per-call API for AI agents with no signup or API key. Email validation, SPF/DMARC audits, DNS lookup, site contacts, URL to Markdown, IBAN and Swedish personnummer/orgnr validation. From $0.001 in USDC on Base via x402.

## Output

A JSON object containing the start date, the number of days added, the calendar mode used, metadata about whether the start and result dates are business days, and the computed result date in YYYY-MM-DD format.

## 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": [
      "from",
      "add"
     ],
     "properties": {
      "add": {
       "type": "string",
       "description": "Bank days to add (negative to go back, max 1000)."
      },
      "from": {
       "type": "string",
       "description": "Start date, YYYY-MM-DD."
      },
      "mode": {
       "enum": [
        "bank",
        "work"
       ],
       "type": "string",
       "description": "bank (default) or work."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "add": 2,
  "from": "2026-12-23",
  "mode": "bank",
  "from_info": {
   "date": "2026-12-23",
   "is_business_day": true
  },
  "result_date": "2026-12-29",
  "result_info": {
   "date": "2026-12-29",
   "is_business_day": true
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swedish-bank-work-day-calculator-d26f81c0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentkit-x402.zenith-ops.workers.dev](https://www.zero.xyz/host/agentkit-x402.zenith-ops.workers.dev/llms.txt)
