Open Physics, Constants & Cited Sources
Authored by Juraj. Every formula runs client-side with zero black-box servers. All data verified 2026-11-28.
1. 8,760-Hour Solar Astronomy & Battery Dispatch
For each hour of the 365-day year, McKwh converts local clock time (including DST via Intl.DateTimeFormat) to true local solar time using regional longitude and the Equation of Time: solarHour = clockHour + (lon - 15 x tzOffset)/15 + EoT(d)/60. Plane-of-array irradiance combines direct beam, isotropic sky diffuse, and ground-reflected albedo (0.20 x GHI x (1 - cos(tilt))/2) so vertical 90° balcony railings match PVGIS 5.3 (~69% of optimum) and 32° East/West roofs match ~79-81%. Annual generation is calibrated directly to PVGIS 5.3 / NREL PVWatts regional yield.
Battery dispatch runs hourly with 90% round-trip efficiency, 90% usable depth of discharge, 0.5C charge/discharge power cap, and 0.3%/day standby loss. Incremental battery payback separates panels-only cashflow from battery-added savings, and break-even battery price equals batteryExtraSavingsPerYear x warrantyYears (default 12 years). 20-year totals include 0.5%/yr PV aging, inverter replacement at year 13, and battery replacement at year 12 (50% of initial battery price).
2. Heat Pump SCOP & Spark Gap
Air-to-water SCOP starts from Fraunhofer ISE's 2024 field study (61 existing homes, mean 3.4, range 2.6-4.9): 35°C underfloor = 3.90, 45°C = 3.40, 50°C = 3.15, 55°C = 2.90, 65°C = 2.40, plus +0.70 for ground-source loops, adjusted by regional heating degree days. A heat pump beats a fossil boiler on running cost strictly when SCOP > SparkGap x boilerEff. Combustion emission factors are 202 g CO2e/kWh fuel (gas) and 267 g/kWh (heating oil); upstream methane leakage is excluded (conservative).
3. EV Battery Carbon Debt & Lifecycle Math
Battery pack manufacturing uses 75 kg CO2e/kWh (mid-point of the 60-90 kg/kWh range in ICCT/IEA studies). Wallbox charging includes 10% AC conversion losses. Home solar charging uses 45 g CO2e/kWh lifecycle PV and is valued at the grid export price. Well-to-wheel fuel factors: petrol 2.68 kg CO2e/L, diesel 3.15 kg CO2e/L. Swiss EV and heat pump calculations default to the VSE 2024 consumer electricity mix (57 g CO2e/kWh).
4. Primary Data Sources (Verified 2026-11-28)
- Grid carbon intensity: Ember Yearly Electricity Data 2025 (ember-energy.org); VSE Swiss consumer mix 2024 (strom.ch); DCCEEW NGA Factors 2025 NSW (dcceew.gov.au).
- Solar yields: European Commission JRC PVGIS 5.3 SARAH3 (re.jrc.ec.europa.eu) and NREL PVWatts.
- Switzerland tariffs & grants: ElCom 2026 median H4 (elcom.admin.ch), EKZ 2026 quarterly feed-in, BFS/HEV gas, HeizOel24 oil, EnergieSchweiz PV Price Study 2025, Pronovo EIV (pronovo.ch).
- Slovakia, Germany, UK, US tariffs: URSO 2026 (urso.gov.sk), SOS/SPP 2026, Zelena domacnostiam II, BDEW Oct 2026, Ofgem Q4 2026 price cap, EIA Electric Power Monthly Sept 2026.