Skip to content

Instantly share code, notes, and snippets.

@Dmench
Dmench / ETS Calc
Created May 18, 2025 18:23
ETS Calc
<div style="font-family:sans-serif;padding:15px;background:#f5f5f5;border-radius:8px;">
<h4>Interactive Spark-Spread & Break-Even Calculator</h4>
Power (€/MWh): <input id="p_elec" type="number" value="60" step="0.1"/><br>
Gas (€/MWh): <input id="p_gas" type="number" value="35.29" step="0.1"/><br>
EF (tCO₂/MWh): <input id="ef" type="number" value="0.404" step="0.001"/><br>
CO₂ Price (€/t): <input id="p_co2" type="number" value="72.79" step="0.1"/><br><br>
<button onclick="calc()">Calculate</button>
<p id="result"></p>
</div>
<script>