{"uid":"cap_hBub34m_HUXyXIalPwv63","slug":"canadian-tax-business-days-calculator-0dd2f671","name":"Canadian Tax & Business Days Calculator","description":"Pay-per-call data for AI agents, paid in USDC on Base with x402: token risk checks (rug check) on Base, Ethereum, Arbitrum, Optimism, Polygon and Solana, onchain reads (balances, transactions, gas, contracts, NFTs, whale trades, new pools, ENS and Basenames), ECB exchange rates, and Canadian sales tax and business days.","url":"https://ca-tax-api-mainnet.lxtap.workers.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_VQYEtDtva8nBbdYnZ8Z_V","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.","exampleAgentPrompt":"How many business days are there between March 3, 2025 and April 18, 2025 in Ontario — not counting weekends or provincial holidays?","exampleUseCases":[{"title":"Contract deadline calculation in Quebec","prompt":"My contract starts on February 10, 2025 and I need to deliver in 30 business days — how many calendar days is that, and what holidays in Quebec fall in between? Start from 2025-02-10 and go to 2025-03-25."},{"title":"Payroll processing window for British Columbia","prompt":"How many business days does my payroll team have to process payments between April 1 and April 30, 2025 in British Columbia, and which statutory holidays should we account for?"},{"title":"Legal filing deadline check in Alberta","prompt":"I need to know exactly how many business days fall between 2025-06-01 and 2025-07-15 in Alberta so I can confirm we meet the 30-business-day filing requirement — and tell me which holidays are skipped."}],"resultDescription":"Returns the count of business days between the start and end dates (inclusive of start, exclusive of end) for the specified Canadian province, along with a list of statutory holidays that were skipped, including any observed weekday substitutions for holidays falling on weekends.","failureModes":["Invalid province code returns an error — must be one of the 13 valid two-letter codes","Malformed date format (not YYYY-MM-DD) causes a validation error","End date before or equal to start date may return zero or an error","Extremely large date ranges may return unexpected results if holiday data is not available for those years"],"whenToPreferThis":"Choose this endpoint when you need business day calculations specifically for Canadian jurisdictions with accurate provincial statutory holiday exclusions. It is superior to generic business-day calculators that do not account for Canadian provincial holiday variations, or when you need to know exactly which holidays were skipped in a specific province or territory.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T12:45:03.901Z","isFirstParty":false,"canonicalSlug":"canadian-tax-business-days-calculator-0dd2f671"}