<input name="userinput" type="text" oninput="result.textContent=(this.value * koef.value||0).toFixed(2)">