-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (44 loc) · 2.16 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- CSS link -->
<link rel="stylesheet" href="style.css">
<!-- Bootstrap 5 CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<!-- Connected Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap" rel="stylesheet">
<title>Retirement Savings Calculator</title>
</head>
<body>
<h1 id="header">Retirement Savings Calculator</h1>
<div class="calculator-container">
<form class="form-container">
<div class="form-group">
<label for="current-age">Current age:</label>
<input class="form-control" id="current-age" type="number">
</div>
<div class="form-group">
<label for="retirement-age">Age of retirement: </label>
<input class="form-control" id="retirement-age" type="number">
</div>
<div class="form-group">
<label for="contribution">Monthly contribution ($): </label>
<input class="form-control" id="contribution" type="number">
</div>
<div class="form-group" style="padding-bottom: 25px;">
<label for="interest-rate">Annual interest rate (%): </label>
<input class="form-control" id="interest-rate" type="number">
</div>
<button type="button" onclick="calculateSaving()">Calculate</button>
<p id="result"></p>
<i style="text-align: left;">Discover your required monthly contribution to achieve your retirement savings goal. <a href="retirement-savings-calculator.html">Click here</a> to calculate.</i>
</form>
</div>
<!-- Script -->
<script src="index.js"></script>
</body>
</html>