foundry.dap.solutions/api/add-business-days-to-date
Use when you need the Canadian business day a count lands on, or to check whether a date is a business day. Moves a start date forward 0 to 260 business days on the Payments Canada calendar and names each closure day passed. $0.01 USDC on Base per answer via x402; a refusal is free.
POST
https://foundry.dap.solutions/api/add-business-days-to-dateUptime100% 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
// 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://foundry.dap.solutions/api/add-business-days-to-date", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"acknowledge":"no-ruling-v1","business_days":"2","calendar":"ca-payments-canada","freshness_tolerance":"P90D","start_date":"2026-10-09"}),
});
console.log(await res.json());Example input
{
"acknowledge": "no-ruling-v1",
"business_days": "2",
"calendar": "ca-payments-canada",
"freshness_tolerance": "P90D",
"start_date": "2026-10-09"
}