-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinterest.html
53 lines (49 loc) · 2.39 KB
/
interest.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<link rel="stylesheet" type="text/css" href="style.css">
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="./CSS/interest.css">
<link rel="stylesheet" type="text/css" href="result.css">
<link href="https://fonts.googleapis.com/css2?family=Ubuntu&display=swap" rel="stylesheet">
<link rel="icon" href="Image/Favicon.png">
<link rel="stylesheet" href="theme.css">
<title>SIP Calculator</title>
</head>
<body class="SIP">
<div class="calculator-name-header">
<!-- Updated by @Shantanu-Meta -->
<span>SIP calculator</span>
</div>
<div class="calcsip">
<label for="amountInvested">Amount Invested:</label>
<input type="number" id="amountInvested">
<label for="investmentPeriod">Investment Time Frame (in years):</label>
<input type="number" id="investmentPeriod">
<label for="expectedRate">Rate of interest:</label>
<input type="number" id="expectedRate">
<button type="button" onclick="calculateFutureValue()" id="button">Calculate</button>
<p>Future Value:
<div class="outterbox">
<div class="box"><span id="futureValue"></span></div>
</div></p>
</div>
<a href="/home.html"><i id="home" class="fa fa-home" aria-hidden="true" style="font-size: 35px; text-decoration: none; color: aliceblue; text-align: end; "></i></a>
<script src="./Javascript/Bitwise.js"></script>
<script class="SIP">
function calculateFutureValue() {
let amountInvested = document.getElementById("amountInvested").value;
let investmentPeriod = document.getElementById("investmentPeriod").value;
let expectedRate = document.getElementById("expectedRate").value;
let current_interest = (amountInvested * expectedRate * investmentPeriod)/100;
let futureValue = amountInvested + current_interest;
document.getElementById("futureValue").innerHTML = `${futureValue}`;
}
</script>
</body>
</html>