{
  "input": {
    "currency": "USD",
    "purchasePrice": 30000,
    "downPayment": 5000,
    "annualRate": 6,
    "loanMonths": 60,
    "horizonMonths": 60,
    "powertrain": "petrol",
    "annualDepreciationPercent": 15,
    "annualInsurance": 1200,
    "annualMaintenance": 600,
    "annualDistance": 15000,
    "petrolLitresPer100": 7,
    "petrolPrice": 1.5,
    "evKWhPer100": 18,
    "electricityPrice": 0.2,
    "evPricePremium": 5000,
    "chargerCost": 1000,
    "currentCarValue": 10000,
    "currentLoanBalance": 5000,
    "currentLoanRate": 5,
    "currentLoanMonths": 24,
    "currentDepreciationPercent": 10,
    "currentAnnualInsurance": 900,
    "currentAnnualMaintenance": 1200,
    "leaseMonthly": 450,
    "leaseUpfront": 2000,
    "leaseEndFee": 300,
    "leaseAnnualDistance": 15000,
    "leaseExcessDistanceFee": 0.15
  },
  "result": {
    "value": 36763.2,
    "summary": "Costs compare the same horizon, including finance balances and vehicle values at the end.",
    "metrics": {
      "buyCost": 36763.2,
      "petrolBuyCost": 36763.2,
      "evBuyCost": 36169.52,
      "leaseCost": 46175,
      "keepCost": 22734.67,
      "monthlyLoanPayment": 386.66,
      "financedAmount": 20000,
      "loanBalance": 0,
      "vehicleValue": 13311.16,
      "endEquity": 13311.16,
      "initialNegativeEquity": 0,
      "petrolEnergyCost": 7875,
      "evEnergyCost": 2700,
      "evMinusPetrolCost": -593.69,
      "leaseMinusBuyCost": 9411.8,
      "keepMinusBuyCost": -14028.54
    },
    "rows": [
      {
        "option": "Buy petrol",
        "cost": 36763.2,
        "endVehicleValue": 13311.16,
        "endLoanBalance": 0
      },
      {
        "option": "Buy EV",
        "cost": 36169.52,
        "endVehicleValue": 15529.69,
        "endLoanBalance": 0
      },
      {
        "option": "Lease",
        "cost": 46175,
        "endVehicleValue": 0,
        "endLoanBalance": 0
      },
      {
        "option": "Keep current car",
        "cost": 22734.67,
        "endVehicleValue": 5904.9,
        "endLoanBalance": 0
      }
    ],
    "unit": "USD",
    "status": "ok"
  }
}