{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://askcalculators.com/us/repayment/schema.json",
  "title": "When Will This Balance Be Paid Off? inputs",
  "description": "Estimate payoff months from an outstanding balance and the monthly payment you can make.",
  "type": "object",
  "properties": {
    "amount": {
      "title": "Outstanding balance",
      "type": "number",
      "default": 20000,
      "minimum": 0,
      "x-unit": "currency"
    },
    "rate": {
      "title": "Annual interest rate",
      "type": "number",
      "default": 6,
      "minimum": 0,
      "maximum": 100,
      "x-unit": "percent"
    },
    "monthlyPayment": {
      "title": "Chosen monthly payment (optional)",
      "type": "number",
      "description": "Enter a payment to solve for payoff time. Leave blank to use the original scheduled-term fallback.",
      "minimum": 0,
      "x-unit": "currency"
    },
    "term": {
      "title": "Original scheduled term, when payment is blank (years)",
      "type": "number",
      "default": 5,
      "minimum": 0.01
    },
    "extraPayment": {
      "title": "Additional monthly payment",
      "type": "number",
      "default": 0,
      "minimum": 0,
      "x-unit": "currency"
    }
  },
  "required": [
    "amount",
    "rate"
  ],
  "additionalProperties": false,
  "x-askcalculators": {
    "version": "20.13.0",
    "calculatorUrl": "https://askcalculators.com/us/repayment/",
    "queryExample": "https://askcalculators.com/us/repayment/?amount=9000&rate=0&monthlyPayment=300&extraPayment=0",
    "migrationStatus": "new",
    "reviewStatus": "pending",
    "pageStatus": "live",
    "workStatus": "pending",
    "formula": {
      "expression": "For positive r, n = −ln(1 − P × r / M) / ln(1 + r); round up the payment count and adjust the final payment."
    },
    "quality": {
      "availability": "live",
      "technicalReviewRecord": "/reviews/repayment-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 payoff",
        "type": "number",
        "x-format": "integer",
        "x-primary": true
      },
      "monthlyPayment": {
        "title": "Total 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"
      },
      "totalPaid": {
        "title": "Total repaid",
        "type": "number",
        "x-format": "currency",
        "x-currency": "USD"
      }
    }
  }
}
