Calculate Invoice Due Date
calculate_invoice_due_dateWork out an invoice due date from its payment terms (due on receipt, Net 7/10/14/15/30/45/60/90, EOM, Net 30 EOM, or a custom number of days), and the date the cash actually lands after a late payment and the payment method clearing time (card 0, wire 1, ACH 2, check 7 business days). Weekend dates roll to Monday by default. Same math as revexos.com/invoice-due-date-calculator.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| terms | Yes | ||
| days_late | No | How many days after the due date the client usually pays. Default 0. | |
| custom_days | No | custom terms: days after the invoice date. | |
| invoice_date | Yes | Invoice date, YYYY-MM-DD. | |
| roll_weekends | No | Move weekend dates to Monday. Default true. | |
| payment_method | No | Default ach. |