-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
97 lines (84 loc) · 3.7 KB
/
index.php
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Loan EMI Calculator</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" />
</head>
<body>
<h1 class="start" aria-label="Toggle color mode" title="Toggle color mode" onclick="myFunction()">
<div class="sun visible">
<i id="dark-mode-btn" class="toggler far fa-sun"></i>
</div>
<div class="moon">
<i id="dark-mode-btn" class="toggler far fa-moon"></i>
</div>
</h1>
<h1 class="head">Loan EMI <span class="innerspan">Calculator</span><iframe class="subtop"
src="https://github.com/sponsors/sumandey07/button" title="Sponsor sumandey07" loading="lazy"
frameborder="0" height="32" width="114"></iframe></h1>
<div class="loan-calculator">
<div class="top">
<form action="#">
<div class="group">
<div>
<div class="title">Amount (A)</div>
<input class="loan-amount" type="text" value="30000" />
</div>
<div>
<div class="title">Interest Rate (R) (in %)</div>
<input class="interest-rate" type="text" value="8.5" />
</div>
<div>
<div class="title">Tenure (T) (in months)</div>
<input class="loan-tenure" type="text" value="240" />
</div>
<div>
<div class="title">Processing Fees (P) (in %)</div>
<input class="processing-fee" type="text" value="1.2" />
</div>
<div>
<div class="title">Down Payment (D)</div>
<input class="down-payment" type="text" value="3000" />
</div>
</div>
</form>
<div class="group1">
<button class="calculate-btn">Calculate</button>
</div>
</div>
<div class="result">
<div class="left">
<div class="total-down-payment">
<h3>Total Down Payment (TDP)<br />(TDP = D + P)</h3>
<div class="value">12</div>
</div>
<div class="loan-emi">
<h3>Loan EMI (LE)</h3>
<h4>(LE = [PLA x R x
(1+R)^T]/[(1+R)^T-1] )</h4>
<div class="value">123</div>
</div>
<div class="total-interest">
<h3>Total Interest Payable (TIP)<br /> (TIP = LE * T)</h3>
<div class="value">1234</div>
</div>
<div class="total-amount">
<h3>Total Payment (TP)<br />(TP = LA + TIP + P)</h3>
<div class="value">12345</div>
</div>
</div>
<div class="right">
<canvas height="400" id="myChart" width="400"></canvas>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.umd.min.js"></script>
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/js/all.min.js"></script>
<script src="main.js"></script>
</body>
</html>