JSFiddle - React, Tailwind, and code Playground
by SpiceLab
HTML
<form name="calculator">
Bruttolistenpreis: <input type="text" name="blp" required><br><br>
Entfernung zum Arbeitsplatz: <input type="text" name="entfernunga" required><br><br>
Entfernung bei doppelter HaushaltsfĂĽhrung: <input type="text" name="enfernungb"><br><br>
Gesamter geldwerter Vorteil:<input type="text" name="gv"><br><br>
<!--BerechnenButton --><input type="button" value="Berechnen" onclick="abc()"><br><br>
</form>
JavaScript
function abc() {
var blpInput = document.calculator.blp.value;
var entfernungaInput = document.calculator.entfernunga.value;
var gvResult = blpInput * entfernungaInput;
document.calculator.gv.value = gvResult;
}