Credit Card Payoff Calculator API
How long a credit card balance takes to clear and the interest paid: at a fixed monthly payment, within a set number of months, or paying only the minimum.
POST /api/v1/tools/credit-card-payoff-calculatorMCP credit_card_payoff_calculatorCalculatorsFind how long a credit card balance takes to clear at a fixed payment, the payment needed to clear it by a date, or how long paying only the minimum would take.
Input
Send these as a JSON object. Unknown fields are rejected.
- mode
- payment: fixed monthly payment. months: payment needed to clear it in `months`. minimum: pay only the issuer's minimum. (string, one of payment, months, minimum, default "payment")
- balance
- Current balance owed. (number, 0 to …, required)
- apr
- Annual percentage rate, e.g. 21.99. Interest is charged monthly at APR ÷ 12. (number, 0 to 100, required)
- payment
- payment mode: the fixed monthly payment (must exceed the first month's interest). (number, 0 to …)
- months
- months mode: months to clear the balance, 1 to 1200. (integer, 1 to 1200)
- minPercent
- minimum mode: minimum payment as a % of the balance, with that month's interest added on top. (number, 0 to 100, default 1)
- minFloor
- minimum mode: the lowest minimum payment the issuer allows. (number, 0 to …, default 25)
- schedule
- Include the month-by-month rows (payment, interest, balance). (boolean, default false)
curl https://pithlab.com/api/v1/tools/credit-card-payoff-calculator \n -H "Authorization: Bearer $PITHLAB_KEY" \n -H "Content-Type: application/json" \n -d '{"mode":"payment","balance":5000,"apr":21.99,"payment":200}'Example response
{
"ok": true,
"result": {
"mode": "payment",
"months": 34,
"payment": 200,
"totalInterest": 1748.71,
"totalPaid": 6748.71,
"text": "Paying 200.00 a month clears 5,000.00 in 2 years 10 months (34 payments): total interest 1,748.71, total paid 6,748.71"
}
}