Date Math

Date Math: Is a date a business day? If not, why (weekend, or which public holiday). Also the next and previous business day, and the month's business-day count, first and last business day. Use for office-open checks, shipping cut-offs, settlement dates. Country holidays, custom holidays and custom workweeks (e.g. Sun–Thu, Mon–Sat).

OtherLiveeip155:8453Exactvia cdp
Business dayIs business dayNext business dayBusiness day calculatorShipping cutoff
Calls · 30d
2→ 0%
This endpoint's own trailing-30-day call count, as published by the upstream catalog and snapshotted daily. 25 snapshots so far.
–
Verified settled volume
This endpoint is not in a service group yet, so no volume is attributed to it. The catalogue refresh runs every 30 minutes.
$0.0010
Listed price
As published in the catalog. Always read the live 402 before paying.
2
Calls · 30d
Upstream's own call count for this endpoint, not ours.
1
Unique payers · 30d
Last called 2026-11-09 11:11Z
Paid to
0x7eC21Ee3AA308D2cbB8c65ef0E89af2a30101656

The wallet the 402 directs payment to. Its full payment record is on the merchant page.

Asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Provider

The payTo wallet does not resolve to a registered ERC-8004 agent. That is not a verdict on the service; most of the catalog is unregistered.

Recent payments · which agents last used it

Every indexed settlement paid to this service’s wallet, newest first. The index does not record which endpoint a payment was for, so if this wallet serves more than one endpoint, the rows include payments for the others. Paged up to the newest 5,000; the full history is on the merchant page.

Accepts

The payment requirements as published to the catalog. Read the live 402 before paying: a price here is a claim, not a quote.

0.001USDC≈ $0.001 USD
on Base · exact scheme

Pay 0.001 USDC on Base to 0x7eC2…01656. The signed payment is good for 5 minutes.

USD Coin contract
0x8335…02913
Payment window
5 minutes
As published
1000 smallest units
The catalog’s raw entry
[
  {
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "extra": {
      "name": "USD Coin",
      "version": "2"
    },
    "payTo": "0x7eC21Ee3AA308D2cbB8c65ef0E89af2a30101656",
    "amount": "1000",
    "scheme": "exact",
    "network": "eip155:8453",
    "maxTimeoutSeconds": 300
  }
]

Extensions

{
  "bazaar": {
    "info": {
      "input": {
        "body": {
          "date": "2026-12-25",
          "country": "PH"
        },
        "type": "http",
        "method": "POST",
        "bodyType": "json"
      },
      "output": {
        "type": "json",
        "example": {
          "date": "2026-12-25",
          "month": {
            "business_days": 21,
            "last_business_day": "2026-12-31",
            "first_business_day": "2026-12-01",
            "business_day_number": null
          },
          "reason": "holiday",
          "holiday": "Christmas Day",
          "weekday": "Friday",
          "is_business_day": false,
          "next_business_day": "2026-12-28",
          "previous_business_day": "2026-12-24"
        }
      }
    },
    "schema": {
      "type": "object",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "required": [
        "input"
      ],
      "properties": {
        "input": {
          "type": "object",
          "required": [
            "type",
            "method",
            "bodyType",
            "body"
          ],
          "properties": {
            "body": {
              "type": "object",
              "required": [
                "date"
              ],
              "properties": {
                "date": {
                  "type": "string",
                  "example": "2026-11-07",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                },
                "country": {
                  "type": "string",
                  "example": "US",
                  "pattern": "^[A-Za-z]{2}$",
                  "description": "ISO 3166-1 alpha-2 country code (207 countries); its public holidays (2000–2050) are excluded from business days"
                },
                "holidays": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "example": "2026-11-07",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  "maxItems": 1000,
                  "description": "Extra dates excluded from business-day counts (rest days from workdays are always excluded)"
                },
                "workdays": {
                  "type": "array",
                  "items": {
                    "type": "integer",
                    "maximum": 6,
                    "minimum": 0
                  },
                  "example": [
                    1,
                    2,
                    3,
                    4,
                    5
                  ],
                  "maxItems": 7,
                  "minItems": 1,
                  "description": "Working days of the week, 0 = Sunday. Default [1,2,3,4,5] (Mon–Fri); e.g. [0,1,2,3,4] for Sun–Thu or [1,2,3,4,5,6] for Mon–Sat"
                }
              }
            },
            "type": {
              "type": "string",
              "const": "http"
            },
            "method": {
              "enum": [
                "POST"
              ],
              "type": "string"
            },
            "bodyType": {
              "enum": [
                "json",
                "form-data",
                "text"
              ],
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        "output": {
          "type": "object",
          "required": [
            "type"
          ],
          "properties": {
            "type": {
              "type": "string"
            },
            "example": {
              "type": "object",
              "required": [
                "date",
                "weekday",
                "is_business_day",
                "reason",
                "holiday",
                "next_business_day",
                "previous_business_day",
                "month"
              ],
              "properties": {
                "date": {
                  "type": "string"
                },
                "month": {
                  "type": "object",
                  "required": [
                    "business_days",
                    "first_business_day",
                    "last_business_day",
                    "business_day_number"
                  ],
                  "properties": {
                    "business_days": {
                      "type": "integer"
                    },
                    "last_business_day": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "first_business_day": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "business_day_number": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Which business day of the month this date is (1 = first); null if not a business day"
                    }
                  }
                },
                "reason": {
                  "enum": [
                    "weekend",
                    "holiday",
                    null
                  ],
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why it is not a business day; null if it is"
                },
                "holiday": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Holiday name if the date is a holiday"
                },
                "weekday": {
                  "type": "string"
                },
                "is_business_day": {
                  "type": "boolean"
                },
                "next_business_day": {
                  "type": "string"
                },
                "previous_business_day": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}

Provenance

Seen in the source catalog
2026-11-09 11:11Z
Last indexed by Roundhouse
2026-12-03 00:30Z
Last enriched (probe, favicon, geo)
2026-11-11 16:16Z
x402 version
2
Max timeout
300s
Liveness probe
HTTP 404
Report

Hand this page to an agent

Copy the prompt and paste it into Claude, an MCP client or your own agent: it will vet this service and call it over the free read API. No key, no account.

GET api.roundhouseai.io/v0/endpoints

This endpoint's own trailing-30-day call count, as published by the upstream catalog and snapshotted daily. 25 snapshots so far. Verified volume counts only settlements relayed by a known x402 facilitator.

Open skill.md
Show the prompt
Using Roundhouse, look up the x402 service Date Math and tell me whether it is
worth paying: what a call costs, whether the endpoint answered when last probed, and what
its payment record actually shows.

curl -s 'https://api.roundhouseai.io/v0/endpoints?q=Date%20Math'
curl -s 'https://api.roundhouseai.io/v0/merchants/<the payTo wallet returned above>'

Then call it: read the price from the live 402 at https://date-math.datemath.workers.dev/v1/business_day, never from
a cached figure, and pay with an x402 client.

The /v0 API needs an API key (`authorization: Bearer rh_live_…`) on everything except
/v0/unified* and /v0/endpoints. Either pay over x402 (mint a personal key for $0.01 at
GET https://api.roundhouseai.io/v0/test/x402), or ask me for an organization key, which I create at
https://roundhouseai.io/dashboard/connections. If you have neither, ask before going further.

If you do not have Roundhouse tools or skills installed, read
https://roundhouseai.io/skill.md first — it is the whole procedure.