A credit card balance shrinks only by what is left of your payment after the month's interest: on a 500 balance at 12 percent APR the first month's interest is 5, so a 500 payment leaves 5, and one more small month clears it — 2 months and 5.05 of interest in total. At 0 percent the arithmetic is bare division: 1,000 at 100 a month is 10 months and no interest. The calculator walks the balance down month by month exactly this way.
The warning the arithmetic carries: if the monthly payment does not exceed the month's interest, the balance never falls — the calculator says so instead of naming a date. Paying only the minimum works the same way for years, because the minimum is set near the interest. Nothing you enter leaves your browser, and this is arithmetic, not financial advice.
10 months at 0 percent APR — the balance divided by the payment. At a real APR it takes longer, because part of each payment is eaten by interest first.
It depends on the balance, APR and payment together: 500 at 12 percent APR paid at 500 a month costs 5.05 total, while the same balance at a small monthly payment costs many times that. Enter your three numbers for your figure.
If the payment is less than the month's interest — balance times APR divided by 12 — the unpaid interest is added and the balance grows. The payment has to beat the interest for the balance to fall.
The monthly interest is the balance times the APR divided by 12: 500 at 12 percent APR is 5 of interest in the first month, charged before your payment is applied.