Calculate compound interest in JavaScript.
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

34 wiersze
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>