-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
235 lines (225 loc) · 9.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
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Car Purchase Eligibility Calculator</title>
<link rel="icon" href="images/yt.png">
<link rel="stylesheet" href="style.css">
<script src="script.js" defer></script>
<!-- Pacifo Font -->
<link href='https://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet'>
<!-- Bebas Font -->
<link href='https://fonts.googleapis.com/css?family=Bebas Neue' rel='stylesheet'>
<!-- Ubuntu -->
<link href='https://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet'>
</head>
<body>
<center><h1 id="div-title">Car Purchase Eligibility Calculator</h1></center>
<center>
<table>
<!-- Net Income -->
<tr>
<td colspan="5" class="td_subtopic">Net Income:</td>
</tr>
<tr>
<td class="td_first_row">Monthly Salary</td>
<td class="td_second_row"></td>
<td class="td_third_row"></td>
<td class="td_fourth_row">
<input type="number" id="monthly_salary"><br><span id="monthly_salary_error"></span>
</td>
<td class="td_fifth_row"></td>
</tr>
<tr>
<td class="td_first_row">Income Tax + EPF + SOCSO</td>
<td class="td_second_row"></td>
<td class="td_third_row"></td>
<td class="td_fourth_row">
<p id="output1"></p>
</td>
<td class="td_fifth_row"></td>
</tr>
<tr>
<td class="td_first_row"></td>
<td class="td_second_row"></td>
<td class="td_third_row"></td>
<td class="td_fourth_row"></td>
<td class="td_fifth_row">
<p id="output2"></p>
</td>
</tr>
<tr>
<td colspan="5"></td>
</tr>
<tr>
<td colspan="5"></td>
</tr>
<tr>
<td colspan="5"></td>
</tr>
<!-- Maximum Monthly Car Installment -->
<tr>
<td colspan="5" class="td_subtopic">Maximum Monthly Car Installment:</td>
</tr>
<tr>
<td class="td_first_row">Maximum Monthly Car Commitment</td>
<td class="td_second_row"></td>
<td class="td_third_row"></td>
<td class="td_fourth_row">
<p id="output3"></p>
</td>
<td class="td_fifth_row"></td>
</tr>
<tr>
<td class="td_first_row">Estimated Monthly Car Expenses:</td>
<td class="td_second_row"></td>
<td class="td_third_row"></td>
<td class="td_fourth_row"></td>
<td class="td_fifth_row"></td>
</tr>
<tr>
<td class="td_first_row"></td>
<td class="td_second_row">Road Tax (yearly)</td>
<td class="td_third_row">
<input type="number" id="road_tax"><br><span id="road_tax_error"></span>
</td>
<td class="td_fourth_row"></td>
<td class="td_fifth_row"></td>
</tr>
<tr>
<td class="td_first_row"></td>
<td class="td_second_row">Car Insurance (yearly)</td>
<td class="td_third_row">
<input type="number" id="car_insurance"><br><span id="car_insurance_error"></span>
</td>
<td class="td_fourth_row"></td>
<td class="td_fifth_row"></td>
</tr>
<tr>
<td class="td_first_row"></td>
<td class="td_second_row">Car Maintenance (yearly)</td>
<td class="td_third_row">
<input type="number" id="car_maintenance"><br><span id="car_maintenance_error"></span>
</td>
<td class="td_fourth_row"></td>
<td class="td_fifth_row"></td>
</tr>
<tr>
<td class="td_first_row"></td>
<td class="td_second_row">Fuel Petrol (monthly)</td>
<td class="td_third_row">
<input type="number" id="fuel_petrol"><br><span id="fuel_petrol_error"></span>
</td>
<td class="td_fourth_row"></td>
<td class="td_fifth_row"></td>
</tr>
<tr>
<td class="td_first_row"></td>
<td class="td_second_row"></td>
<td class="td_third_row"></td>
<td class="td_fourth_row">
<p id="output4"></p>
</td>
<td class="td_fifth_row"></td>
</tr>
<tr>
<td class="td_first_row"></td>
<td class="td_second_row"></td>
<td class="td_third_row"></td>
<td class="td_fourth_row"></td>
<td class="td_fifth_row">
<p id="output5"></p>
</td>
</tr>
<tr>
<td colspan="5"></td>
</tr>
<tr>
<td colspan="5"></td>
</tr>
<tr>
<td colspan="5"></td>
</tr>
<!-- Highest Net Car Budget Price -->
<tr>
<td colspan="5" class="td_subtopic">Highest Net Car Budget Price:</td>
</tr>
<tr>
<td class="td_first_row">Car Loan Variables:</td>
<td class="td_second_row"></td>
<td class="td_third_row"></td>
<td class="td_fourth_row"></td>
<td class="td_fifth_row"></td>
</tr>
<tr>
<td class="td_first_row"></td>
<td class="td_second_row">Interest Rate (%)</td>
<td class="td_third_row">
<input type="number" id="interest_rate"><br><span id="interest_rate_error"></span>
</td>
<td class="td_fourth_row"></td>
<td class="td_fifth_row"></td>
</tr>
<tr>
<td class="td_first_row"></td>
<td class="td_second_row">Loan Term (year)</td>
<td class="td_third_row">
<input type="number" id="loan_term"><br><span id="loan_term_error"></span>
</td>
<td class="td_fourth_row"></td>
<td class="td_fifth_row"></td>
</tr>
<tr>
<td class="td_first_row">Maximum Affordable Car Loan</td>
<td class="td_second_row"></td>
<td class="td_third_row"></td>
<td class="td_fourth_row">
<p id="output6"></p>
</td>
<td class="td_fifth_row"></td>
</tr>
<tr>
<td class="td_first_row">Total Car Loan Interest</td>
<td class="td_second_row"></td>
<td class="td_third_row"></td>
<td class="td_fourth_row">
<p id="output7"></p>
</td>
<td class="td_fifth_row"></td>
</tr>
<tr>
<td class="td_first_row"></td>
<td class="td_second_row"></td>
<td class="td_third_row"></td>
<td class="td_fourth_row"></td>
<td id="grand_total" class="td_fifth_row">
<p id="output8"></p>
</td>
</tr>
</table>
</center>
<center>
<a id="btn-calc" class="neon_button" href="#">
<span></span>
<span></span>
<span></span>
<span></span>
Calculate
</a>
</center>
</body>
<footer>
<center>
<p class="footer_copyright">
2022 Copyright © Yottasoft Technology
</p>
</center>
<center>
<p class="footer_copyright">
All rights reserved.
</p>
</center>
</footer>
</html>