<input type="hidden" name="sum" id="sum"> <input type="number" oninput="sum.value = this.value * 1.02;">