Overview
Date Math: Subscription and contract date math: current billing period, next renewal, upcoming renewals, cancel-by date for a notice period, free-trial start, and day-based proration of a price. Month-end anchors stay at month end (Jan 31, Feb 28, Mar 31). Use for SaaS billing, renewals, cancellation deadlines and refunds.
Protocol
x402 (POST)
Price
$0.0010
Payment Asset
USD Coin
Payment Network
eip155:8453
Category
uncategorized
Provider
Date Math
Indexed
2026-11-08 04:08:36
Health
Status
unknown
Latency (p50)
—
Uptime (30d)
—
Reliability Score
—
Last Checked
Never
Last Healthy
Never
Consecutive Failures
0
Input Schema
{
"body": {
"amount": 30,
"as_of": "2026-03-10",
"interval": "month",
"notice_days": 7,
"start": "2026-01-31"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Output Schema
{
"example": {
"as_of": "2026-03-10",
"billing_start": "2026-01-31",
"cancel_by": "2026-03-24",
"cancel_by_passed": false,
"current_period": {
"days": 31,
"days_elapsed": 10,
"days_remaining": 21,
"end": "2026-03-30",
"number": 2,
"start": "2026-02-28"
},
"interval": "month",
"interval_count": 1,
"next_renewal": "2026-03-31",
"next_renewal_weekday": "Tuesday",
"note": "Renewals are measured from the first billing date, so month-end anchors stay at month end (Jan 31 -> Feb 28 -> Mar 31). Proration is by whole days as of the start of as_of.",
"proration": {
"amount": 30,
"daily_rate": 0.967742,
"ratio_unused": 0.677419,
"unused": 20.32,
"used": 9.68
},
"start": "2026-01-31",
"status": "active",
"upcoming_renewals": [
"2026-03-31"
]
},
"type": "json"
}