Payroll and billing dates
pay_datesCalculate upcoming pay and billing dates for weekly, biweekly, monthly, or semi-monthly schedules, adjusting dates off weekends and public holidays for payroll, invoices, and recurring billing.
Instructions
Upcoming pay or billing dates for monthly, semi-monthly (e.g. 15th and last day), biweekly or weekly schedules, moved off weekends and public holidays (to the previous, next or nearest business day). Use for payroll calendars, invoice due dates and recurring billing. First 25 calls per day are free, then $0.001 per call (x402).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | monthly: 1 day, semi_monthly: 2 days of the month (1–31 or "last"; 31 clamps to month end). Defaults: ["last"] and [15, "last"] | |
| from | Yes | ||
| count | No | How many pay dates to return | |
| adjust | No | Where to move a pay date that falls on a weekend or holiday | previous |
| anchor | No | ||
| country | No | ISO 3166-1 alpha-2 country code (207 countries); its public holidays (2000–2050) are excluded from business days | |
| holidays | No | Extra dates excluded from business-day counts (rest days from workdays are always excluded) | |
| schedule | Yes | ||
| workdays | No | Working days of the week, 0 = Sunday. Default [1,2,3,4,5] (Mon–Fri); e.g. [0,1,2,3,4] for Sun–Thu or [1,2,3,4,5,6] for Mon–Sat |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| adjust | Yes | ||
| schedule | Yes | ||
| pay_dates | Yes |