78trust / 100

Time Business Days

by Duo Data Utilities in Productivity & SaaS

x402 APIPassing, checked 40 min ago

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 a weekday mask (Friday-Saturday and Sunday-only weeks work) and holidays are an explicit date list, so nothing depends on a stale holiday table. Returns the result date, the day count and the skipped dates with reasons. The skipped list is capped at 1,000 entries (skipped_truncated flags it); skipped_total is always exact.

GET https://api.duoleads.com/v1/time/business-days

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
58 ms typical, 311 ms slowest 5%
Last check
40 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.duoleads.com/v1/time/business-days?days=5&from=2026-12-24&holidays=2026-12-25%2C2026-12-26%2C2027-01-01"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.duoleads.com%2Fv1%2Ftime%2Fbusiness-days
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"
}

Example output

{
  "data": {
    "calendar_days_spanned": 11,
    "days": 5,
    "from": "2026-12-24",
    "result": "2027-01-04",
    "skipped": [
      {
        "date": "2026-12-25",
        "reason": "holiday",
        "weekday": "friday"
      },
      {
        "date": "2026-12-26",
        "reason": "weekend",
        "weekday": "saturday"
      },
      {
        "date": "2026-12-27",
        "reason": "weekend",
        "weekday": "sunday"
      },
      {
        "date": "2027-01-01",
        "reason": "holiday",
        "weekday": "friday"
      },
      {
        "date": "2027-01-02",
        "reason": "weekend",
        "weekday": "saturday"
      },
      {
        "date": "2027-01-03",
        "reason": "weekend",
        "weekday": "sunday"
      }
    ],
    "skipped_total": 6,
    "skipped_truncated": false
  },
  "meta": {
    "computed_at": "2026-09-28T12:00:00.000Z",
    "deterministic": true,
    "disclaimer": "Factual output of a deterministic computation over public data. Provided as is, with no warranty of accuracy, completeness or availability. Not investment, financial, legal, tax, medical or any other professional advice, and not a recommendation. Verify before relying on it. Terms: https://api.duoleads.com/terms",
    "price_usd": "0.05",
    "request_id": "01K6B7Q4ZC8H3F2M9WXR5TYN0D"
  },
  "ok": true,
  "route": "/v1/time/business-days",
  "version": "1.0.0"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
40 min agoPassed402162 ms$0.05
5 h agoPassed402311 ms$0.05
8 h agoPassed40241 ms$0.05
12 h agoPassed40258 ms$0.05
16 h agoPassed402518 ms$0.05
19 h agoPassed40239 ms$0.05
24 h agoPassed40255 ms$0.05