# Due Date Calculator API

> Due Date Calculator API is a paid API for AI agents from api.firstmention.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-20).

Calculates the number of calendar days, business days, and weeks between two dates or from a date to now, and checks if a date has expired

## Facts

- Endpoint: GET https://api.firstmention.uk/s/due/due?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/due-date-calculator-api-12ea575e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2ZV89LeFYsK-cg3CiwP3s

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 due-date-calculator-api-12ea575e
```

Example prompt: How many calendar days, business days, and weeks are between January 15, 2025 and March 10, 2025, and has the end date already expired?

## When to prefer this

Use this endpoint when you need fast, reliable date arithmetic including business-day counts — especially when building deadline trackers, invoice aging tools, contract duration calculators, or any workflow that must distinguish calendar days from working days. Prefer this over general-purpose date libraries when you need a pay-per-call API that handles business day logic without additional setup.

## Known failure modes

- Missing required 'op' or date query parameters returns an error
- Invalid date formats result in parsing errors
- Dates out of supported range may return unexpected results
- Malformed query string parameters may return 400-level errors

## How this service works

Pay-per-call HTTP APIs, paid with x402 in USDC on Base (eip155:8453): agentkit, api-change-check, basedue, bizcal-api, chainread, check-sanctions, chgwatch, company-facts, domain-intel, domainkit, domfacts, due, edgar, funding-rates, fundinglens, pageaudit, solcheck, token-dd, txpreflight, walletprofile, web-extract, webmd, webread, websearch, x402-preflight, x402check, x402index. Each operation describes its service.

## Output

Returns a JSON object with the operation name, the total number of calendar days, the number of weeks (as a decimal), whether the end date has expired (boolean), and the number of business days between the two dates.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "op": {
       "type": "string"
      },
      "to": {
       "type": "string"
      },
      "from": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "op": {
       "type": "string"
      },
      "days": {
       "type": "number"
      },
      "weeks": {
       "type": "number"
      },
      "expired": {
       "type": "boolean"
      },
      "business_days": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "op": "between",
  "days": 54,
  "weeks": 7.71,
  "expired": false,
  "business_days": 38
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/due-date-calculator-api-12ea575e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.firstmention.uk](https://www.zero.xyz/host/api.firstmention.uk/llms.txt)
