{"uid":"cap_8Zeq-XbCZem8vdEcYhvdB","slug":"irantools-business-day-counter-74e489f6","name":"IranTools Business Day Counter","description":"Persian and Iranian utilities for AI agents, plus general text/Unicode tooling. Jalali (Solar Hijri) calendar conversion, Iranian national ID / SHEBA / bank card / postal code / economic code validation, province and city lookup, official public holidays, Persian text normalization, keyword extraction, sentence splitting, similarity, HTML stripping, RTL fixing, Unicode homoglyph folding, script detection, NFC/NFD normalization, grapheme counting, date description, business-day counting, slugify, FNV-1a hashing, Shannon entropy, format and encoding detection, byte sizes. Pay per call in USDC on Base via x402 - no signup, no API key, no KYC. The same tools are also exposed as MCP tools at /mcp.","url":"https://irantools.johnaio281.workers.dev/api/iran/business_days?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["to","from"],"properties":{"to":{"type":"string"},"from":{"type":"string"}}},"responseSchema":{"type":"object","additionalProperties":true},"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_icE51pCYhIiBOo5ljmKyG","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":"Counts the number of Iranian business days (excluding weekends and official public holidays) between two dates","exampleAgentPrompt":"How many Iranian business days are there from 2024-03-20 to 2024-04-20? I need to account for official Iranian public holidays and weekends.","exampleUseCases":[{"title":"Payroll period working day count","prompt":"How many working days does an Iranian employee have between 2024-01-01 and 2024-01-31, excluding Iranian weekends and public holidays?"},{"title":"Contract deadline calculation","prompt":"I have a contract with a 30-business-day delivery window starting 2024-03-01 in Iran — how many calendar days should I plan for, and can you tell me the business day count through 2024-04-15?"},{"title":"Project milestone scheduling","prompt":"Our project kicks off on 2024-05-01 and needs to complete by 2024-06-30 in Iran — how many actual business days do we have to work with, excluding Nowruz and other official holidays?"}],"resultDescription":"Returns a count of business days between the two specified dates, excluding Iranian official public holidays and Iranian weekend days (Thursday/Friday or Friday depending on sector), giving an integer or structured result indicating the number of working days in that interval.","failureModes":["Missing 'from' or 'to' fields returns a 400 validation error","Dates in incorrect format (non-ISO string) may cause parsing failures","Date range where 'from' is after 'to' may return zero or an error","Very large date ranges may cause unexpected behavior","Payment failure or insufficient USDC balance returns a 402 error"],"whenToPreferThis":"Choose this endpoint when you need Iran-specific business day calculations that account for official Iranian public holidays and the Iranian work-week structure, rather than a generic weekday counter. It is ideal for payroll, SLA calculations, contract deadlines, or project scheduling in an Iranian business context where generic calendar tools would miss local holidays.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:28.465Z","isFirstParty":false,"canonicalSlug":"irantools-business-day-counter-74e489f6"}