Calculate an invoice due date
calculate_invoice_due_dateCalculate the date an invoice is due from its date and the payment terms (on receipt, a number of days, end of month, days after month end, a day of the following month, or the statutory 30-day default), with the weekday and whether the terms exceed the statutory limit.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"invoiceDate": "<invoiceDate>",
"terms": "<terms>"
},
"name": "calculate_invoice_due_date"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Days, for net and net-end-of-month terms | |
| terms | Yes | The payment terms | |
| customer | No | ||
| dayOfMonth | No | Day, for day-of-following-month terms | |
| invoiceDate | Yes | Invoice date, or the day the customer received it (YYYY-MM-DD) |