# ForgeMesh Date Math API

> ForgeMesh Date Math API is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Adds a number of days to a start date or counts calendar and business days between two dates, returning the result deterministically.

## Facts

- Endpoint: POST https://x402.forgemesh.io/date-math
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgemesh-date-math-api-5e89c99e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aBTVPAAkuuuiXI3ECXMkF

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 forgemesh-date-math-api-5e89c99e -d '<json body>'
```

Example prompt: How many calendar days and business days are there between March 3, 2025 and June 30, 2025? Also, what date falls exactly 45 days after March 3?

## When to prefer this

Use this endpoint whenever an AI agent needs to perform reliable date arithmetic — adding days to a date or counting calendar/business days between two dates — rather than attempting in-context reasoning, which is error-prone for date math. Ideal for deadline tracking, SLA computation, scheduling workflows, and planning tasks where deterministic correctness is required.

## Known failure modes

- Invalid ISO date format for start or end field returns an error
- Missing both end and add_days — ambiguous request with no operation to perform
- add_days is non-numeric or malformed string
- End date is before start date, potentially returning a negative count or error
- Network/payment failure returns HTTP 402 or 5xx

## How this service works

Date math API: add days to any date (returns resulting date + weekday) or count calendar days and weekday-only business days between two dates. The arithmetic agents get wrong in-context, done deterministically. For deadlines, SLAs, scheduling, and planning.

## Output

Returns the resulting date and its weekday name when adding days, or returns the total number of calendar days and weekday-only business days between two given dates.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "end": {
   "type": "string",
   "description": "ISO date — if set, returns days between"
  },
  "start": {
   "type": "string",
   "description": "ISO date (default now)"
  },
  "add_days": {
   "type": "string",
   "description": "days to add to start"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "calendar_days": 17,
  "business_days_weekdays_only": 13
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgemesh-date-math-api-5e89c99e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
