-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrd-calculator.html
109 lines (90 loc) · 2.82 KB
/
rd-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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RD Calculator</title>
<link rel="stylesheet" href="styles.css">
<script type="text/javascript" src="script.js"></script>
<style>
#interestrate {
width: 90px;
}
#durationYtext,
#durationMtext {
width: 75px;
}
#durationY {
width: 90px;
}
#durationM {
width: 60px;
}
</style>
</head>
<body>
<div id="main" class="graybackground">
<form onsubmit="calculateRD(); return false;" method="post" autocomplete="off">
<table align="center">
<tr>
<td>
<p class="labels">Monthly Investment (Rs.)</p> <input type="text" id="installment"
name="installment" placeholder="Deposit Amount" onkeyup="toINR('installment')" required
pattern="[0-9,]+" />
</td>
</tr>
<tr>
<td>
<p class="labels">Duration</p> <input type="text" id="durationY" name="durationY"
placeholder="Duration" required pattern="[0-9]+" />
<input id="durationYtext" type="text" disabled="disabled" placeholder="Year(s)" /> <select
id="durationM" name="durationM">
<option value="0" selected="selected">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select> <input id="durationMtext" type="text" disabled="disabled" placeholder="Month(s)" />
</td>
</tr>
<tr>
<td>
<p class="labels">Interest Rate (%)</p> <input type="text" id="interestrate" name="interestrate"
value="" placeholder="Interest" required pattern="[0-9]*[. ]*[0-9]+" />
</td>
</tr>
<tr>
<td>
<p class="labels">Compounding Frequency</p> <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><input type="submit" id="calculate" class="submitMain" name="calculate" value="Calculate" />
<input type="reset" id="clear" class="submitMain" name="clear" value="Clear"
onclick="clearForm('rdresult');" /></td>
</tr>
</table>
<table align="center">
<tr>
<td>
<p class="results" id="rdresult" hidden="hidden"></p>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>