Prorate
prorateProrate a money amount across a date range, in exact cents. The window is half-open: from the start date up to but not including the end date. The charge is amount × days used / days in the period, rounded half away from zero. The used range has to sit inside the period. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/prorate
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": {
"amount": "<amount>",
"periodStart": "<periodStart>",
"periodEnd": "<periodEnd>",
"useStart": "<useStart>",
"useEnd": "<useEnd>"
},
"name": "prorate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| useEnd | Yes | ||
| useStart | Yes | ||
| periodEnd | Yes | ||
| periodStart | Yes |