-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfd-calculator.html
79 lines (70 loc) · 2.11 KB
/
fd-calculator.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FD Calculator</title>
<link rel="stylesheet" href="styles.css">
<script type="text/javascript" src="script.js"></script>
<style>
#interestrate,
#tenure {
width: 160px;
}
</style>
</head>
<body>
<div id="main" class="graybackground" align="center">
<form onsubmit="calculateFD(); return false;" method="post" autocomplete="off">
<table>
<tr>
<td>
<p class="labels">FD Amount (Rs.)</p>
<input type="text" id="principleamount" name="principleamount" value=""
placeholder="Principle Amount" onkeyup="toINR('principleamount')" required
pattern="[0-9,]+" />
</td>
</tr>
<tr>
<td>
<p class="labels">Interest (%)       Frequency</p>
<input type="text" id="interestrate" name="interestrate" value="" placeholder="Interest"
required pattern="[0-9]*[. ]*[0-9]+" />
<select id="frequency" name="frequency">
<option value="1">Yearly</option>
<option value="2">Half Yearly</option>
<option value="4">Quarterly</option>
<option value="12">Monthly</option>
</select>
</td>
</tr>
<tr>
<td>
<p class="labels">Investment Period</p>
<input type="text" id="tenure" name="tenure" value="" placeholder="Tenure" required
pattern="[0-9]+" />
<select id="tenureType" name="tenureType">
<option value="y">Year(s)</option>
<option value="m">Month(s)</option>
</select>
</td>
</tr>
<tr>
<td>
<input type="submit" id="calculate" class="submitMain" name="calculate" value="Calculate" />
<input type="reset" id="clear" class="submitMain" name="clear" value="Clear"
onclick="clearForm('result');" />
</td>
</tr>
</table>
<table align="center">
<tr>
<td>
<p class="results" id="result" hidden="hidden"></p>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>