{"uid":"cap_Sf-G4-8XOBx6V3OmTB9fm","slug":"canadian-tax-business-days-calculator-2d1d95e6","name":"Canadian Tax & Business Days Calculator","description":"Number of business days between two dates in a Canadian province or territory, excluding weekends and that province's statutory holidays (with weekend holidays moved to their observed weekday). Counts from the start date up to but not including the end date, and lists the holidays skipped.","url":"https://onchaincheck.dev/business-days?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["province","from","to"],"properties":{"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Day after the last day counted, YYYY-MM-DD"},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"First day counted, YYYY-MM-DD"},"province":{"enum":["AB","BC","MB","NB","NL","NS","NT","NU","ON","PE","QC","SK","YT"],"type":"string","description":"Two-letter Canadian province or territory code"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"to":"2027-01-01","from":"2026-12-01","province":"ON","businessDays":21,"holidaysSkipped":[{"date":"2026-12-25","name":"Christmas Day","observed":"2026-12-25"},{"date":"2026-12-26","name":"Boxing Day","observed":"2026-12-28"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GDeA1Yy5oEdmCoNZQiwWu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the number of business days between two dates for a specified Canadian province or territory, excluding weekends and provincial statutory holidays with observed-day adjustments, and lists all holidays skipped.","exampleAgentPrompt":"How many business days are there in Ontario between December 1, 2026 and January 1, 2027, excluding weekends and Ontario's statutory holidays?","exampleUseCases":[{"title":"Contract deadline calculation in Quebec","prompt":"I need to know how many business days there are between March 15, 2027 and April 30, 2027 in Quebec — make sure you account for Quebec's statutory holidays and any observed holiday shifts."},{"title":"Payroll processing window for Alberta","prompt":"How many business days are there in Alberta from January 1, 2027 to January 31, 2027? I need to plan our payroll processing schedule and want to know which holidays get skipped."},{"title":"Legal notice period check in British Columbia","prompt":"Can you count the business days between May 1, 2027 and May 31, 2027 in British Columbia? I'm checking whether a 20-business-day notice period fits within that month given BC's stat holidays."}],"resultDescription":"A JSON object containing the province code, the from and to dates, the total number of business days in the range (start date inclusive, end date exclusive), and a list of statutory holidays skipped — each with the holiday name, canonical date, and observed date (accounting for weekend shifts to Monday or Friday).","failureModes":["Invalid date format (not YYYY-MM-DD) returns a validation error","Missing required query parameters (province, from, to) returns a 400-level error","Unsupported province code returns a validation error","Date range where from is after to may return zero or an error","Payment not included or insufficient results in a 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need an authoritative count of Canadian business days for a specific province or territory, including correct statutory holiday logic with observed-day adjustments. It is the right choice for legal deadline calculations, contract timelines, payroll windows, or any scheduling task that must respect Canadian provincial holiday rules. Prefer it over generic business-day calculators that don't model Canada's province-specific holiday variations or observed-day rules.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:35:16.344Z","isFirstParty":false,"canonicalSlug":"canadian-tax-business-days-calculator-2d1d95e6"}