Calculate compound interest in JavaScript.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

34 lignes
991 B

<!DOCTYPE html>
<!--Copyright 2016 Joshua Mudge Licensed under the Apache License 2.0. See license file for information.-->
<html>
<head>
<script src="calculate.js"></script>
<meta charset="utf-8">
<title>Compound</title>
</head>
<body>
<h1>Compound</h1>
<br>
Enter the initial investment amount.
<p></p>
<input type="number" id="amount"></input>
<br><br><br><br>
Enter the number of years to grow.
<br><br>
<input type="number" id="time"></input>
<br><br><br><br>
Please enter the amount of money you will contribute annually.
<br><br>
<input type="number" id="contribution"></input>
<br><br><br><br>
Enter the percentage rate of the investment.
<br><br>
<input type="number" id="rate"></input>
<br><br>
<input type="button" value="Calculate Interest" onclick="calculate()" />
<p id="interest"></p>
<br><br><br><br><br>
<p>&copy; Copyright 2017 Joshua Mudge</p>
<p>Licensed under the Apache License 2.0, see the <a href="LICENSE.txt">license</a> file for details.</p>
</body>
</html>