Beantwortet die Frage: Ab welchem Strompreis ist es gleich teuer, elektrisch statt mit Benzin zu fahren?
- Break-Even Strompreis — die Hauptausgabe: der maximale Strompreis, bei dem das Fahren im Elektromodus immer noch billiger ist als mit Benzin
- Kosten pro km Vergleich — Elektro vs. Benzin
- Interaktives Diagramm — zeigt die Stromkurve vs. konstante Benzinkosten, mit Break-Even-Punkt und aktuellem Preis markiert
- Profilverwaltung — Fahrzeugprofile speichern / laden / löschen (JSON)
- Python 3.10+
customtkinter≥ 5.2matplotlib≥ 3.7
MIT
Answers the question: At what electricity price does electric driving cost the same per km as driving on petrol?
- Break-Even Electricity Price — the key output: the maximum electricity price where EV mode is still cheaper than petrol
- Cost per km comparison — electric vs. petrol at your current electricity price
- Interactive chart — shows electric cost curve vs. constant petrol cost, with break-even point and current price marked
- Profile management — save / load / delete vehicle profiles (JSON)
Inputs (only 5 values needed):
| Input | Example | Description |
|---|---|---|
| Petrol Price | 1.75 €/L | Current price at the pump |
| Petrol Consumption | 5.8 L/100 km | Consumption in hybrid/petrol mode |
| Electricity Price | 0.32 €/kWh | Your electricity price at home |
| Electric Consumption | 17.5 kWh/100 km | Consumption in electric mode |
| Charging Efficiency | 90% | Energy lost during charging |
Key formula:
where
Example: With petrol at 1.75 €/L and 5.8 L/100 km, and electric at 17.5 kWh/100 km with 90% efficiency:
→ As long as your electricity costs less than 0.52 €/kWh, driving electric is cheaper than petrol!
pip install -r requirements.txt
python main.py- Python 3.10+
customtkinter≥ 5.2matplotlib≥ 3.7
pip install pytest
python -m pytest tests/ -vMIT