Invoice due date from net terms
invoice_due_dateComputes an invoice due date from an issue date and net terms in calendar days (Net 30 = 30), then optionally rolls a weekend or U.S. holiday due date: following (next business day), preceding, or modified_following (next business day unless it crosses into the next month). Uses exact observed federal or Federal Reserve holidays.
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": {
"issue_date": "<issue_date>",
"net_days": "<net_days>"
},
"name": "invoice_due_date"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roll | No | How to move a due date that is not a business day. | following |
| calendar | No | fed_banking (default) matches when banks settle payments; federal uses OPM observance. | fed_banking |
| net_days | Yes | Net terms in calendar days, e.g. 30 for Net 30. | |
| issue_date | Yes | ||
| extra_closed_dates | No | Extra closed dates to treat as holidays, e.g. a one-off executive order closure such as 2025-01-09. |