how to change to input of a form dynamically
Chance: <input type="text" name="chance" value=""
onkeyup="document.querySelector('input[name=payout]').value=this.value?1/this.value*98:''">
<br/><br/>Payout: <input type="text" name="payout" value=""><br/>