Late fee calculator
late_fee_calculatorWorks out a late fee: the amount, the new total, the exact day it applies, a ready-to-use line for the invoice, and whether the fee is in the usual range.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Invoice amount in US dollars | |
| due_date | Yes | A calendar date, YYYY-MM-DD | |
| fee_kind | Yes | flat = a dollar amount, percent = % of the invoice | |
| fee_value | Yes | Dollars for flat (e.g. 25) or the percent for percent (e.g. 1.5) | |
| grace_days | Yes | Days after the due date before the fee applies; 0 = the day after the due date |