Skip to content
Fourohtwo

Date Math

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

Date Math: Job schedules that skip weekends and public holidays, which cron cannot express: "3rd business day of the month at 09:00", "last business day", "every Monday, or the next business day if it is a holiday", or any cron with a holiday rule. Returns the next runs and whether it runs today. DST-aware. Use for payroll, billing, reports and batch jobs.

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

Uptime100% of 3 checks 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

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://date-math.datemath.workers.dev/v1/business_day_schedule", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"count":2,"country":"GB","from":"2026-11-10","n":3,"rule":"nth_business_day","timezone":"Europe/London"}),
});
console.log(await res.json());

Example input

{
  "count": 2,
  "country": "GB",
  "from": "2026-11-10",
  "n": 3,
  "rule": "nth_business_day",
  "timezone": "Europe/London"
}

More from Date MathProvider status