-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
77 lines (65 loc) · 3.56 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
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
<!DOCTYPE html>
<html>
<head>
<title>
Various types of Calculators
</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link href="style.css" rel="stylesheet">
</head>
<body>
<header>
<div class="home">
<button id="homebutton">Home</button>
</div>
<div class="navi">
<button id="firstbutton">About</button>
</div>
<div class="dropdown">
<button id="browsed">Browse</button>
<div class="dropdown-content">
<a class="listitem1" href="index.html">Simple Interest</a>
<a class="listitem2" href="compound.html">Compound Interest</a>
</div>
</div>
<div class="spantwo"><span class="firstheading"> Various Types of </span> <span class="smg">Calculators</span></div>
</header>
<br><br><br><br><br>
<div class="main">
<h1> <div id="divtag"><i>Simple Interest</i> Calculator </div> </h1></body>
<p>
<span class="description">Simple interest is a straightforward method of calculating interest on a loan or investment. It is calculated based on the principal amount (the initial amount of money) and the interest rate over a specific period of time.</span><br><br>
<big> The formula for calculating simple interest is:</big><br><br><br>
<span class="formula">Simple Interest = ( Principal x Time x Interest Rate ) / 100</span>
</p><br>
<p class="instructions"><i>INSTRUCTIONS:</i><br><br> Give the input in the below textboxes and press "Submit" button to display the Simple Interest.</p><br>
<div class="box">
<h3> Principal amount(in Rs/-): </h3>
<h3 style="display: inline;padding-right:7px;">P =</h3>
<input id="userinput1" title="Only positive numbers." onkeypress="return event.charCode >= 48" min="1" type="number" maxlength="8" placeholder="Enter the amount">
<br><br>
<h3> Time(in years only): </h3>
<h3 style="display: inline;padding-right:7px;">T =</h3>
<input id="userinput2" type="number"title="Only positive numbers." onkeypress="return event.charCode >= 48" min="1" maxlength="8" placeholder="Enter time required">
<br><br>
<h3> Rate of Interest(in percent%): </h3>
<h3 style="display: inline;padding-right:7px;">R =</h3>
<input id="userinput3" type="number"title="Only positive numbers." onkeypress="return event.charCode >= 48" min="1" maxlength="8" placeholder="Enter Rate of interest%">
<button onclick="function1()" id="submit">SUBMIT</button>
</div>
<br>
<br>
<br>
<img src="simple-interest-min-1024x538.jpg" class="image">
<p style="display: inline;font-size:22px; font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Open Sans', 'Helvetica Neue', sans-serif ; padding-right:15px; color:navy;"><b>Simple Interest Calculated is: </b></p>
<p id="output" style="display: inline;font-size: 22px; font-family:Arial, Helvetica, sans-serif; color:darkgreen;"></p>
<br><br><br>
<span class="finalvalue" style="display: inline;"> The total amount obtained including the simple interest is: </span>
<span id="finalresult" style="display: inline;font-size: 22px; font-family:Arial, Helvetica, sans-serif; color:darkgreen;"></span>
<br>
<script src="script.js"></script>
</div>
</body>
</html>