Skip to content
Fourohtwo

Date Math

date-math.datemath.workers.dev/v1/business_day

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).

BaseAnswering
POSThttps://date-math.datemath.workers.dev/v1/business_day

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://date-math.datemath.workers.dev/v1/business_day", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"country":"PH","date":"2026-12-25"}),
});
console.log(await res.json());

Example input

{
  "country": "PH",
  "date": "2026-12-25"
}

More from Date Math