forked from devimam/electricity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index-D1.html
397 lines (366 loc) · 23.8 KB
/
index-D1.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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
<!DOCTYPE html>
<html lang="en">
<head>
<!-- meta section -->
<meta charset="utf-8">
<meta name="author" content="Mohammad Imam Hossain">
<meta name="description" content="A website for Bangladesh electricity bill, power factor, and system loss calculation.">
<meta name="keywords" content="Bangladesh, Electricity, Bill, Postpaid, Prepaid, LT-A, LT-B, LT-C1, LT-C2, LT-D1, LT-D2, LT-D3, LT-E, LT-T, MT">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Electricity Bill</title>
<!-- icon section -->
<link href="resources/icon/myicon.png" rel="icon">
<!-- bootstrap css section -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous">
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand" href="#"><img src="resources/icon/myicon.png" alt="logo" width="35" height="30">Bangladesh Electricity Bill</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent" aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item dropdown">
<a class="nav-link active dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">Low Tension (LT)</a>
<ul class="dropdown-menu">
<li><span class="dropdown-item-text"><span class="fw-semibold">Single phase</span> : 0-7.5 kW, 230 V</span></li>
<li><span class="dropdown-item-text"><span class="fw-semibold">Three phase</span> : 0-80 kW, 400 V</span></li>
<li>
<hr class="dropdown-divider">
</li>
<li><a class="dropdown-item" href="index.html"><span class="fw-semibold">LT-A</span> : Residential</a></li>
<li><a class="dropdown-item" href="index-B.html"><span class="fw-semibold">LT-B</span> : Irrigation/Pump for Agriculture</a></li>
<li>
<hr class="dropdown-divider">
</li>
<li><a class="dropdown-item" href="index-C1.html"><span class="fw-semibold">LT-C1</span> : Small Industry</a></li>
<li><a class="dropdown-item" href="index-C2.html"><span class="fw-semibold">LT-C2</span> : Construction</a></li>
<li>
<hr class="dropdown-divider">
</li>
<li><a class="dropdown-item active" href="index-D1.html"><span class="fw-semibold">LT-D1</span> : Education, Religious & Charitable Institutions and Hospital</a></li>
<li><a class="dropdown-item" href="index-D2.html"><span class="fw-semibold">LT-D2</span> : Street Light & Water Pump</a></li>
<li><a class="dropdown-item" href="index-D3.html"><span class="fw-semibold">LT-D3</span> : Battery Charging Station</a></li>
<li>
<hr class="dropdown-divider">
</li>
<li><a class="dropdown-item" href="index-E.html"><span class="fw-semibold">LT-E</span> : Commercial & Office</a></li>
<li><a class="dropdown-item" href="index-T.html"><span class="fw-semibold">LT-T</span> : Temporary</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">Medium Tension (MT)</a>
<ul class="dropdown-menu">
<li><span class="dropdown-item-text">50 kW - 05 MW, 11 kV</span></li>
<li>
<hr class="dropdown-divider">
</li>
<li><a class="dropdown-item" href="#"><span class="fw-semibold">MT-1</span> : Residential</a></li>
<li><a class="dropdown-item" href="#"><span class="fw-semibold">MT-2</span> : Commercial & Office</a></li>
<li><a class="dropdown-item" href="#"><span class="fw-semibold">MT-3</span> : Industry</a></li>
<li><a class="dropdown-item" href="#"><span class="fw-semibold">MT-4</span> : Construction</a></li>
<li><a class="dropdown-item" href="#"><span class="fw-semibold">MT-5</span> : General</a></li>
<li><a class="dropdown-item" href="#"><span class="fw-semibold">MT-6</span> : Temporary</a></li>
<li><a class="dropdown-item" href="#"><span class="fw-semibold">MT-7</span> : Battery Charging Station</a></li>
<li><a class="dropdown-item" href="#"><span class="fw-semibold">MT-8</span> : Irrigation/Pump for Agriculture</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">High Tension (HT)</a>
<ul class="dropdown-menu">
<li><span class="dropdown-item-text">05 MW - 30 MW, 33 kV</span></li>
<li>
<hr class="dropdown-divider">
</li>
<li><a class="dropdown-item" href="#"><span class="fw-semibold">HT-1</span> : General</a></li>
<li><a class="dropdown-item" href="#"><span class="fw-semibold">HT-2</span> : Commercial & Office</a></li>
<li><a class="dropdown-item" href="#"><span class="fw-semibold">HT-3</span> : Industry</a></li>
<li><a class="dropdown-item" href="#"><span class="fw-semibold">HT-4</span> : Construction</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">Extra High Tension (EHT)</a>
<ul class="dropdown-menu">
<li><span class="dropdown-item-text"><span class="fw-semibold">EHT-1</span> : 20 MW - 140 MW, 132 kV & 230 kV</span></li>
<li><span class="dropdown-item-text"><span class="fw-semibold">EHT-2</span> : above 140 MW, 132 kV & 230 kV</span></li>
<li>
<hr class="dropdown-divider">
</li>
<li><a class="dropdown-item" href="#"><span class="fw-semibold">EHT-1</span> : General</a></li>
<li><a class="dropdown-item" href="#"><span class="fw-semibold">EHT-2</span> : General</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">Calculator</a>
<ul class="dropdown-menu">
<li><a href="#pfcalculator" class="dropdown-item" data-bs-toggle="modal">Power Factor</a></li>
<li><a href="#systemloss" class="dropdown-item" data-bs-toggle="modal">System Loss</a></li>
</ul>
</li>
<li class="nav-item">
<a href="resources/refs/Tariff Rate - Feb 2024.pdf" class="nav-link" target="_blank" title="Latest Tariff Rate - Feb 29, 2024">Tariff Rate</a>
</li>
</ul>
<div class="nav-item ms-auto">
<a class="github-button" href="https://github.com/devimam/electricity" data-color-scheme="no-preference: light; light: light; dark: light;" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star devimam/electricity on GitHub">Star</a>
</div>
</div>
</div>
</nav>
</header>
<main class="container-fluid">
<div class="row">
<h1 class="text-center text-secondary">LT-D1 : Education, Religious & Charitable Institutions and Hospital</h1>
<hr>
</div>
<form class="row mb-2 align-items-end">
<div class="col-md-6 mb-md-2">
<div class="row mb-2 justify-content-center">
<div class="col-auto">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="dreg">
<label class="form-check-label" for="dreg">Double Register</label>
</div>
</div>
</div>
<div class="row justify-content-center">
<!-- billed unit section -->
<div class="col-auto mb-2" id="singleregister">
<div class="input-group">
<span class="input-group-text" style="width:140px;">Units to Bill</span>
<input type="number" id="srbilledunit" class="form-control" min="0" placeholder="0">
<span class="input-group-text" style="width:50px;">kWh</span>
</div>
</div>
</div>
<div class="row mb-2 justify-content-center">
<div class="col-auto mb-2 d-none" id="offpkregister">
<div class="input-group">
<span class="input-group-text" style="width:140px;">Offpeak Units</span>
<input type="number" id="offpkbilledunit" class="form-control" min="0" placeholder="0">
<span class="input-group-text" style="width:50px;">kWh</span>
</div>
</div>
</div>
<div class="row mb-2 justify-content-center">
<div class="col-auto mb-2 d-none" id="pkregister">
<div class="input-group">
<span class="input-group-text" style="width:140px;">Peak Units</span>
<input type="number" id="pkbilledunit" class="form-control" min="0" placeholder="0">
<span class="input-group-text" style="width:50px;">kWh</span>
</div>
</div>
</div>
</div>
<div class="col-md-6 mb-2">
<div class="row mb-2 justify-content-center">
<!-- sanctioned load/connected load section -->
<div class="col-auto mb-2">
<div class="input-group">
<span class="input-group-text" style="width:140px;">Sanctioned Load</span>
<input type="number" id="sload" class="form-control" min="1">
<span class="input-group-text" style="width:50px;">kW</span>
</div>
</div>
</div>
<div class="row mb-2 justify-content-center">
<div class="col-auto mb-2">
<div class="input-group">
<span class="input-group-text" style="width:140px;">Connected Load</span>
<input type="number" id="cload" class="form-control" min="1">
<span class="input-group-text" style="width:50px;">kW</span>
</div>
</div>
</div>
</div>
</form>
<div class="row">
<table class="table shadow table-hover table-bordered text-center">
<thead class="table-info">
<tr>
<th scope="col">Step</th>
<th scope="col">Rate/kWh</th>
<th scope="col">Consumed Unit (kWh)</th>
<th scope="col">Unit Cost (Tk)</th>
</tr>
</thead>
<tbody class="table-group-divider">
<tr>
<th scope="row" id="srlabel">Single Register Unit</th>
<td id="srrate" class="text-end"></td>
<td id="srunit" class="text-end"></td>
<td id="srbill" class="text-end"></td>
</tr>
<tr>
<th scope="row" id="offpklabel">Double Register - Offpeak Unit</th>
<td id="offpkrate" class="text-end"></td>
<td id="offpkunit" class="text-end"></td>
<td id="offpkbill" class="text-end"></td>
</tr>
<tr>
<th scope="row" id="pklabel">Double Register - Peak Unit</th>
<td id="pkrate" class="text-end"></td>
<td id="pkunit" class="text-end"></td>
<td id="pkbill" class="text-end"></td>
</tr>
</tbody>
<tfoot class="table-group-divider">
<tr class="table-light">
<th colspan=2 class="text-end text-secondary">Electricity Charge</th>
<th id="energyunit" class="text-end text-secondary"></th>
<th id="energycost" class="text-end text-secondary"></th>
</tr>
<tr>
<th colspan=2 class="text-end text-secondary">Demand Charge</th>
<th class="text-end text-secondary"><span id="demandload"></span></th>
<th id="demandcost" class="text-end text-secondary"></th>
</tr>
<tr class="table-secondary">
<th colspan=2 class="text-end text-primary">Principal Amount</th>
<th class="text-end"></th>
<th id="principal" class="text-end text-primary"></th>
</tr>
<tr>
<th colspan=2 class="text-end text-primary">VAT (5%)</th>
<th class="text-end"></th>
<th id="vat" class="text-end text-primary"></th>
</tr>
<tr class="table-primary">
<th colspan=2 class="text-end text-success">Bill Month Total</th>
<th class="text-end"></th>
<th id="billtotal" class="text-end text-success"></th>
</tr>
</tfoot>
</table>
</div>
</main>
<footer id="footer" class="container-fluid">
<div class="row justify-content-center shadow p-3 mb-2 mt-5">
<div class="col-auto title-custom">
© 2023 <b>Mohammad Imam Hossain</b> | Email: <a href="mailto:imambuet11@gmail.com" class="text-secondary text-decoration-none">imambuet11@gmail.com</a> | All Rights Reserved
</div>
</div>
</footer>
<!-- pfcalculator Modal section -->
<div class="modal fade" id="pfcalculator" tabindex="-1" aria-labelledby="pfcalculator" aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5 text-secondary">Power Factor Calculator</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="mb-3">
<!-- static bar -->
<div class="progress-stacked mb-1" style="height:2px;">
<div class="progress" role="progressbar" style="width: 75%;">
<div class="progress-bar bg-danger"></div>
</div>
<div class="progress" role="progressbar" style="width: 20%;">
<div class="progress-bar bg-warning"></div>
</div>
<div class="progress" role="progressbar" style="width: 5%;">
<div class="progress-bar bg-success"></div>
</div>
</div>
<!-- dynamic bar -->
<div class="progress" role="progressbar">
<div id="pfprogress" class="progress-bar bg-secondary progress-bar-striped progress-bar-animated" style="width: 0%"></div>
</div>
</div>
<div class="row justify-content-center align-items-center">
<div class="col-md-8 order-2 order-md-1">
<div class="input-group mb-3 shadow">
<span class="input-group-text" style="width:120px;">Off Peak Unit</span>
<input type="number" class="form-control" id="pfoffpeak" min="0" placeholder="0">
<span class="input-group-text" style="width:60px;">kWh</span>
</div>
<div class="input-group mb-3 shadow">
<span class="input-group-text" style="width:120px;">Peak Unit</span>
<input type="number" class="form-control" id="pfpeak" min="0" placeholder="0">
<span class="input-group-text" style="width:60px;">kWh</span>
</div>
<div class="input-group mb-3 shadow">
<span class="input-group-text" style="width:120px;">VAR unit</span>
<input type="number" class="form-control" id="pfvar" min="0" placeholder="0">
<span class="input-group-text" style="width:60px;">kVArh</span>
</div>
</div>
<div class="col-auto order-1 order-md-2 mb-3">
<div class="card shadow" id="pfcard">
<div class="card-body text-center">
<span class="display-4 align-middle" id="pfvalue"></span>
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-sm btn-outline-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- systemloss Modal section -->
<div class="modal fade" id="systemloss" tabindex="-1" aria-labelledby="systemloss" aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5 text-secondary">System Loss Calculator</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="mb-3">
<!-- dynamic bar -->
<div class="progress" role="progressbar">
<div id="slossprogress" class="progress-bar bg-info progress-bar-striped progress-bar-animated" style="width: 0%"></div>
</div>
</div>
<div class="row justify-content-center">
<div class="col-auto mb-3">
<div class="card shadow text-bg-info" id="slosscard">
<div class="card-body text-center">
<span class="display-4 align-middle" id="slossvalue"></span>
</div>
</div>
</div>
</div>
<div class="row justify-content-center align-items-center">
<div class="col-12">
<div class="input-group mb-3 shadow">
<span class="input-group-text" style="width:200px;">Total Energy Import</span>
<input type="number" class="form-control" id="slossimport" min="1" placeholder="1">
<span class="input-group-text" style="width:60px;">kWh</span>
</div>
<div class="input-group mb-3 shadow">
<span class="input-group-text" style="width:200px;">Postpaid Energy Sold</span>
<input type="number" class="form-control" id="slosspostpaid" min="0" placeholder="0">
<span class="input-group-text" style="width:60px;">kWh</span>
</div>
<div class="input-group mb-3 shadow">
<span class="input-group-text" style="width:200px;">Prepaid Energy Sold</span>
<input type="number" class="form-control" id="slossprepaid" min="0" placeholder="0">
<span class="input-group-text" style="width:60px;">kWh</span>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-sm btn-outline-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- bootstrap javascript portion -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm" crossorigin="anonymous"></script>
<!-- javascript portion -->
<script src="resources/js/electricity-D1.js"></script>
<script src="resources/js/powerfactor.js"></script>
<script src="resources/js/systemloss.js"></script>
<!-- github buttons -->
<script async defer src="https://buttons.github.io/buttons.js"></script>
</body>
</html>