Savings calculator with the math shownsavings-calculator
Use in Plus UI
npx shadcn@latest add https://blocks.plusui.com/r/savings-calculator.jsonCalculators · 4 variants
← → to step through · + on a thumbnail to compare side by side (up to 3)
/preview/savings-calculator
Open ↗Default content
{
"eyebrow": "Savings",
"title": "What would charging cost you instead of filling up?",
"description": "Move the sliders to match how you drive. We show the sum, not just the answer, so you can check it against your own receipts.",
"currency": "EUR",
"inputs": {
"distance": {
"label": "Distance you drive a month",
"unit": "km",
"min": 200,
"max": 4000,
"step": 50,
"defaultValue": 1200,
"decimals": 0
},
"fuelPrice": {
"label": "Petrol price where you live",
"unit": "per litre",
"min": 1.4,
"max": 2.4,
"step": 0.01,
"defaultValue": 1.89,
"decimals": 2,
"prefix": "€"
},
"efficiency": {
"label": "Your EV's energy use",
"unit": "kWh/100 km",
"min": 13,
"max": 26,
"step": 0.5,
"defaultValue": 17,
"decimals": 1
}
},
"fuel": {
"consumption": 6.5,
"co2PerLitre": 2.31
},
"co2PerKwh": 0.03,
"rates": [
{
"label": "Pay as you go",
"pricePerKwh": 0.5,
"monthlyFee": 0
},
{
"label": "Ampwick Plus",
"pricePerKwh": 0.38,
"monthlyFee": 8.99
}
],
"defaultRate": 1,
"action": {
"label": "Compare plans",
"href": "#",
"variant": "primary"
},
"labels": {
"rate": "Charging plan",
"savings": "You save each month",
"perYear": "{amount} a year",
"co2": "CO₂ avoided each month",
"math": "How we worked it out",
"fuelCost": "Petrol car",
"evCost": "Charging with Ampwick",
"fee": "Monthly fee",
"difference": "Difference",
"noSavings": "At these numbers petrol wins. Try the Plus rate or a longer distance.",
"units": {
"litres": "L",
"kwh": "kWh",
"kg": "kg",
"per100": "/100 km",
"perLitre": "/L",
"perKwh": "/kWh"
},
"note": "Petrol car at 6.5 L/100 km. Blended Ampwick rates for 60% AC and 40% DC charging. Ampwick supplies certified renewable power."
}
}