{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://askcalculators.com/us/credit-card/schema.json",
  "title": "Payoff Time for One Credit-Card Balance inputs",
  "description": "Estimate how long one balance takes to clear at a stated monthly payment, without adding new purchases.",
  "type": "object",
  "properties": {
    "balance": {
      "title": "Credit Card Balance",
      "type": "number",
      "default": 5000
    },
    "rate": {
      "title": "Interest Rate (APR)",
      "type": "number",
      "default": 18.9
    },
    "payment": {
      "title": "Monthly Payment",
      "type": "number",
      "default": 200,
      "x-showWhen": {
        "field": "mode",
        "equals": "payment"
      }
    },
    "monthsToPay": {
      "title": "Months to Payoff",
      "type": "number",
      "default": 24,
      "minimum": 1,
      "maximum": 1200,
      "x-step": 1,
      "multipleOf": 1,
      "x-showWhen": {
        "field": "mode",
        "equals": "months"
      }
    },
    "mode": {
      "title": "Mode",
      "type": "string",
      "default": "payment",
      "enum": [
        "payment",
        "months"
      ],
      "x-optionLabels": {
        "payment": "Months from my chosen payment",
        "months": "Payment for a target term"
      }
    }
  },
  "required": [],
  "additionalProperties": false,
  "x-askcalculators": {
    "version": "20.13.0",
    "calculatorUrl": "https://askcalculators.com/us/credit-card/",
    "queryExample": "https://askcalculators.com/us/credit-card/?balance=3600&rate=0&payment=225&mode=payment",
    "migrationStatus": "migrated",
    "reviewStatus": "pending",
    "pageStatus": "live",
    "workStatus": "pending",
    "migratedDate": "2026-09-10",
    "formula": {
      "expression": "Each month: interest = opening balance × APR / 12; apply the payment to interest and principal.",
      "note": "Actual cards can use daily interest, changing rates, minimum-payment rules and fees. No new spending is assumed. A payment that does not reduce principal will not clear the balance."
    },
    "quality": {
      "availability": "live",
      "technicalReviewRecord": "/reviews/credit-card-calculator.json",
      "qualifiedReview": "pending",
      "qualifiedReviewer": null,
      "qualifiedReviewDate": null,
      "formulaVersion": "20.13.0",
      "referenceCoverage": "references-pending",
      "releaseTestScope": "Catalog and regression checks are not a professional formula audit; consult release evidence.",
      "historicalMetadataDate": "2026-09-10",
      "historicalMetadataNotice": "The imported date is not evidence of a completed human review."
    },
    "outputs": {
      "months": {
        "title": "Months to repay this balance",
        "type": "number",
        "x-format": "integer",
        "x-digits": 2,
        "x-primary": true
      },
      "monthlyPayment": {
        "title": "Monthly payment",
        "type": "number",
        "x-format": "currency",
        "x-currency": "USD"
      },
      "finalPayment": {
        "title": "Final payment",
        "type": "number",
        "x-format": "currency",
        "x-currency": "USD"
      },
      "totalInterest": {
        "title": "Total interest",
        "type": "number",
        "x-format": "currency",
        "x-currency": "USD"
      },
      "totalPayment": {
        "title": "Total repaid",
        "type": "number",
        "x-format": "currency",
        "x-currency": "USD"
      }
    }
  }
}
