{
  "name": "Lithium upgrade value JSON endpoint",
  "description": "Returns usable capacity, weight saved, cost per usable kWh, lifetime cycle-cost estimate, replacement estimates, and watch-outs for lead-acid to LiFePO4 RV battery upgrades.",
  "publisher": {
    "name": "OffGridRVHub",
    "url": "https://www.offgridrvhub.com"
  },
  "source": {
    "endpoint": "https://www.offgridrvhub.com/tools/api/lithium-upgrade-value.json",
    "fullCalculator": "https://www.offgridrvhub.com/tools/lithium-upgrade-value-calculator",
    "assumptions": "https://www.offgridrvhub.com/tools/calculator-assumptions",
    "documentation": "https://www.offgridrvhub.com/tools/calculator-api"
  },
  "caveat": "This is a planning estimate for RV education and comparison. It is not electrical, plumbing, safety, or installation advice.",
  "input": {
    "currentBatteryCount": 2,
    "currentBatteryAh": 100,
    "currentVoltage": 12,
    "currentChemistry": "agm",
    "currentBatteryWeightPounds": 63,
    "currentBankCostDollars": 500,
    "currentCycleLife": 500,
    "lithiumBatteryCount": 2,
    "lithiumBatteryAh": 100,
    "lithiumVoltage": 12,
    "lithiumBatteryWeightPounds": 25,
    "lithiumBankCostDollars": 900,
    "lithiumCycleLife": 3000,
    "dailyUsageWh": 1800,
    "plannedYears": 5,
    "useCase": "seasonal",
    "temperatureExposure": "shoulder-season",
    "chargerUpgradeCostDollars": 250,
    "payloadValuePerPoundDollars": 0
  },
  "result": {
    "currentNominalWh": 2400,
    "currentUsableWh": 1200,
    "lithiumNominalWh": 2400,
    "lithiumUsableWh": 2160,
    "usableCapacityGainWh": 960,
    "usableCapacityGainPercent": 80,
    "currentWeightPounds": 126,
    "lithiumWeightPounds": 50,
    "weightSavedPounds": 76,
    "currentCostPerUsableKwh": 417,
    "lithiumCostPerUsableKwh": 532,
    "currentLifetimeUsableKwh": 600,
    "lithiumLifetimeUsableKwh": 6480,
    "currentCostPerUsableKwhCycle": 0.83,
    "lithiumCostPerUsableKwhCycle": 0.18,
    "currentEstimatedReplacementCount": 1,
    "lithiumEstimatedReplacementCount": 0,
    "netUpgradeCostDollars": 650,
    "capacityEquivalentAgmBankAh": 375,
    "daysOfUseFromCurrentBank": 0.7,
    "daysOfUseFromLithiumBank": 1.2,
    "extraDaysFromLithium": 0.5,
    "verdictTitle": "Lithium is the better long-use value",
    "verdictDetail": "The lithium plan adds 960 usable Wh and drops estimated lifetime cost from $0.83/usable kWh-cycle to $0.18/usable kWh-cycle on the entered cycle assumptions.",
    "recommendedNextMove": "Check payload, recharge timing, charger compatibility, and battery-monitoring before buying the lithium bank.",
    "watchOuts": [
      "This is a planning comparison, not a warranty claim or a certified electrical design. Confirm battery manuals, BMS limits, fuse class, cable size, charger settings, and compartment ventilation before installing.",
      "Cost-per-cycle math depends on real depth of discharge, temperature, charge profile, vibration, storage habits, and whether the battery reaches its claimed cycle life."
    ]
  }
}