Skip to content
Fourohtwo

Business-day arithmetic with a caller-supplied calendar

api.duoleads.com/v1/time/business-days

Business-day arithmetic with a caller-supplied calendar: add or subtract N working days from a date, or count the working days between two dates. The weekend is specified as a weekday mask so Friday-Saturday and Sunday-only weeks work, and holidays are passed in as an explicit date list, so the answer never depends on a holiday table that can go stale. Returns the result date, the day count, and t

BaseAnswering
GEThttps://api.duoleads.com/v1/time/business-days

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://api.duoleads.com/v1/time/business-days?days=5&from=2026-12-24&holidays=2026-12-25%2C2026-12-26%2C2027-01-01");
console.log(await res.json());

Example input

{
  "days": "5",
  "from": "2026-12-24",
  "holidays": "2026-12-25,2026-12-26,2027-01-01"
}

More from Duo Data UtilitiesProvider status