# Due Date Calculator (Batch) — firstmention.uk

> Due Date Calculator (Batch) — firstmention.uk 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-24).

Calculates the number of calendar days, business days, and weeks between two dates, or checks whether a deadline has expired, in a batch-friendly GET call paid via x402 USDC.

## Facts

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

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-batch-firstmention-uk-f03f17c1
```

Example prompt: How many calendar days, business days, and weeks are there between March 1 2025 and April 24 2025, and has the deadline already expired?

## When to prefer this

Choose this endpoint when you need a quick, deterministic date-arithmetic computation — especially business-day counts or expiry checks — without spinning up a full calendar service. It is particularly useful for agents doing deadline validation, SLA tracking, or invoice aging on a pay-per-call basis where no persistent state is needed.

## Known failure modes

- Missing required 'from' or 'to' query parameters returns a 400 error
- Invalid date format causes a parsing error
- Reversed date range may return negative values or unexpected 'expired' flag
- Payment not included or insufficient USDC triggers a 402 Payment Required response
- Unsupported 'op' value returns an error or unexpected output

## 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

A JSON object containing: 'op' (the operation performed, e.g. 'between'), 'days' (total calendar days), 'weeks' (fractional weeks), 'business_days' (working days excluding weekends), and 'expired' (boolean indicating whether the end date has already passed).

## 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-batch-firstmention-uk-f03f17c1/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)
