var Return = document.getElementById("Cash").value; var CashRate = document.getElementById("CashRate").value; aCashReturnCompensation = (Return/1000000); CashRate = Math.pow(1+CashRate/100,1/365)-1; document.getElementById("CashReturn").value=Math.floor(Return/Math.pow(1+CashRate,periods);
CashReturn
<input type="number" />
/1000000).toFixed(2);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)