If I am about to insert the present value formula such PV(1+r)^n . PV stands for present value which is #input1 and r stands for the interest rate which is 8% and n stands for years which is for 32 years.
Only the Present Value will vary because it depends on the user’s input.
Please help through, on how may I include this formula into my website’s page’s code?
To learn how to get input from the user, see this example: Basic Form
Create a basic form without writing a line of code. Use input elements, a dataset, and a button to capture and store user input in a database collection.
Hi, i tried looking through the link you sent me. But the function is coming out as an error and it says “third not a function”. May I know how to resolve this issue. Thank you.
Below is the code :
$w.onReady(function () {
$w('#button2').onClick(function () {
console.log("button has been pressed");
let third = $w('#input7').value;
let second = $w('#input3').value;
$w('#input4').value = third((1+0.05)**25);
$w('#input5').value = second((1+0.05)**25);
console.log("calculation finished");
});
});