storage-charge-clock
Storage, demurrage or detention charge: free-time end date, chargeable days and tiered amount — Counts days between a received date and a released date for storage, demurrage, detention or parking charges: you state whether the receipt day and the release day count, how free days are counted (calendar or business days on a named or caller calendar), and a tiered per-day rate schedule by chargeable day number; returns the last free day, chargeable days, a per-tier breakdown and the total in m
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": {
"receivedOn": "<receivedOn>",
"releasedOn": "<releasedOn>",
"receiptDayCounts": "<receiptDayCounts>",
"releaseDayCounts": "<releaseDayCounts>",
"freeDays": "<freeDays>",
"freeCounting": "<freeCounting>",
"chargeCounting": "<chargeCounting>",
"tiers": "<tiers>",
"currency": "<currency>"
},
"name": "storage-charge-clock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tiers | Yes | ||
| weekend | No | Non-business weekdays, 0=Sunday..6=Saturday. Default [0, 6]; use [5, 6] for a Friday/Saturday weekend. | |
| calendar | No | Named holiday calendar with a source and supported date range (outside it the answer is unsupported), weekends-only (Saturday/Sunday only), or caller (only the holidays you list). | |
| currency | Yes | ||
| freeDays | Yes | ||
| holidays | No | Extra non-business dates YYYY-MM-DD (company closures, a calendar we do not carry). | |
| receivedOn | Yes | ||
| releasedOn | Yes | ||
| freeCounting | Yes | ||
| chargeCounting | Yes | Whether chargeable days skip weekends/holidays. | |
| receiptDayCounts | Yes | Whether the day of receipt is day 1. | |
| releaseDayCounts | Yes | Whether the release day is counted. | |
| claimedChargeMinor | No |