Skip to content
Fourohtwo

Date Math

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

Date Math: SLA math in working hours: the deadline N business hours after a start time, or business time elapsed between two times. Use for support-ticket SLAs, response-time targets and office-hours deadlines. Custom hours and workdays, holidays, country public holidays, DST-aware.

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

Uptime100% of 2 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_hours", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"country":"PH","hours":2,"start":"2026-11-06T16:00","timezone":"Asia/Manila","work_end":"17:00","work_start":"09:00"}),
});
console.log(await res.json());

Example input

{
  "country": "PH",
  "hours": 2,
  "start": "2026-11-06T16:00",
  "timezone": "Asia/Manila",
  "work_end": "17:00",
  "work_start": "09:00"
}

More from Date MathProvider status