-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimple-interest.php
More file actions
787 lines (661 loc) · 24.7 KB
/
Copy pathsimple-interest.php
File metadata and controls
787 lines (661 loc) · 24.7 KB
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
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="author" content="Calculate simple interest instantly with our free online calculator"/>
<link rel="icon" type="image/png" href="images/favicon.png">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Document title -->
<title>Free Simple Interest Calculator Online | Interest Calculator | CalcSpeed</title>
<meta name="title" content="Free Simple Interest Calculator Online | Interest Calculator | CalcSpeed">
<meta name="description" content="Calculate simple interest instantly with our free online calculator. Estimate interest earned, total repayment amount, loan interest, and investment returns using the simple interest formula.">
<meta name="keywords" content="Simple Interest Calculator, Interest Calculator, Loan Interest Calculator, Investment Interest Calculator, Simple Interest Formula, Financial Calculator, Interest Rate Calculator, Savings Calculator">
<meta name="robots" content="index, follow">
<meta name="author" content="CalcSpeed">
<link rel="canonical" href="https://www.calcspeed.com/simple-interest-calculator">
<meta property="og:type" content="website">
<meta property="og:title" content="Free Simple Interest Calculator Online | CalcSpeed">
<meta property="og:description" content="Calculate simple interest, total interest earned, and final amount instantly.">
<meta property="og:url" content="https://www.calcspeed.com/simple-interest-calculator">
<meta property="og:image" content="img/logo-dark1.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Free Simple Interest Calculator Online | CalcSpeed">
<meta name="twitter:description" content="Calculate simple interest and total returns with our free online calculator.">
<meta name="twitter:image" content="img/logo-dark1.png">
<script type="application/ld+json">
{
"@context":"https://schema.org",
"@type":"WebApplication",
"name":"Simple Interest Calculator",
"url":"https://www.calcspeed.com/simple-interest-calculator",
"description":"Free online simple interest calculator for loans, investments, and savings.",
"applicationCategory":"FinanceApplication",
"operatingSystem":"All",
"offers":{
"@type":"Offer",
"price":"0",
"priceCurrency":"USD"
}
}
</script>
<link href="css/plugins.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<style>
input:not([type="checkbox"]):not([type="radio"]), select {
line-height: 18px;
padding: 10px 16px;
min-height: 40px;
font-size: 16px;
}
.gst-section{
background:linear-gradient(135deg,#2250fc,#4f6cf0);
padding:100px 0;
}
.gst-title{
font-weight:700;
font-size:42px;
margin-bottom:10px;
}
.gst-sub{
opacity:.9;
margin-bottom:40px;
}
.gst-card{
background:#fff;
padding:40px;
border-radius:14px;
max-width:900px;
box-shadow:0 25px 50px rgba(0,0,0,.2);
color:#333;
}
.gst-label{
font-weight:800;
margin-bottom:5px;
font-size:18px;
}
.gst-input{
height:45px;
border-radius:8px;
}
.gst-number{
font-size:38px;
font-weight:700;
}
.gst-text{
font-size:18px;
color:#444;
}
.gst-symbol{
font-size:28px;
font-weight:700;
color:#444;
}
.step-card{
background:#fff;
border-radius:12px;
box-shadow:0 10px 25px rgba(0,0,0,0.08);
transition:.3s;
}
.step-card:hover{
transform:translateY(-6px);
}
.step-icon{
font-size:32px;
color:#2250fc;
margin-bottom:10px;
}
.step-arrow{
font-size:26px;
color:#2250fc;
}
/* ============ ROOT: POLO NAVY + GOLD PALETTE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--navy: #0a1628;
--navy2: #0d1e38;
--navy3: #162340;
--blue: #1a4fd6;
--blue2: #1040b8;
--gold: #f5a623;
--gold2: #ffbe4d;
--gold3: #ffd980;
--white: #ffffff;
--off: #f7f8fc;
--paper: #f2f4f9;
--muted: #64748b;
--border: rgba(10,22,40,0.09);
--r: 16px;
--fh: 'Outfit', sans-serif;
--fb: 'Plus Jakarta Sans', sans-serif;
--shadow: 0 4px 24px rgba(10,22,40,0.08);
}
.cn-section { padding: 72px 5%; }
.cn-section.bg-white { background: var(--white); }
.cn-section.bg-paper { background: var(--paper); }
.cn-section.bg-navy { background: var(--navy); }
.container-xl { max-width: 1200px; margin: 0 auto; }
.eyebrow {
font-family: var(--fh);
font-size: 11px; font-weight: 700;
letter-spacing: 3px; text-transform: uppercase;
color: var(--blue); margin-bottom: 10px;
}
.sec-h {
font-family: var(--fh);
font-size: clamp(28px,4vw,48px);
font-weight: 800; line-height: 1.05;
letter-spacing: -1.5px;
color: var(--navy); margin-bottom: 14px;
}
.sec-h.on-dark { color: #fff; }
.sec-p { font-size: 16px; color: var(--muted); max-width: 500px; line-height: 1.65; }
/* ============ CATEGORY TABS ============ */
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.ctab {
padding: 8px 18px; border-radius: 100px;
font-family: var(--fh); font-size: 13px; font-weight: 600;
border: 1.5px solid var(--border); background: var(--white);
color: var(--muted); cursor: pointer;
transition: all .2s;
}
.ctab:hover { border-color: var(--navy); color: var(--navy); }
.ctab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.ctab.active.tf { background: var(--blue); border-color: var(--blue); color: #fff; }
.ctab.active.th { background: #059669; border-color: #059669; color: #fff; }
.ctab.active.tt { background: #0057ff; border-color: #0057ff; color: #fff; }
.ctab.active.td { background: #d97706; border-color: #d97706; color: #fff; }
.ctab.active.ts { background: #7c3aed; border-color: #7c3aed; color: #fff; }
/* ============ CALC CARDS ============ */
.calcs-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(210px,1fr));
gap: 14px;
}
.cc {
background: whitesmoke;
border-radius: var(--r);
border: 1.5px solid var(--border);
padding: 22px 18px 18px;
display: flex; flex-direction: column;
transition: transform .22s, box-shadow .22s, border-color .2s;
position: relative; overflow: hidden;
text-decoration: none;
}
.cc::after {
content: ''; position: absolute;
top: 0; left: 0; right: 0; height: 3px;
background: var(--cc-accent, var(--blue));
opacity: 0; transition: opacity .2s;
}
.cc:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(10,22,40,.1); border-color: rgba(10,22,40,.15); }
.cc:hover::after { opacity: 1; }
.cc-ico {
width: 46px; height: 46px; border-radius: 13px;
background: var(--cc-bg, #eef3ff);
display: flex; align-items: center; justify-content: center;
font-size: 21px; margin-bottom: 13px;
transition: transform .2s;
}
.cc:hover .cc-ico { transform: scale(1.1) rotate(-6deg); }
.cc-name {
font-family: var(--fh); font-size: 16px; font-weight: 700;
color: var(--navy); margin-bottom: 5px; line-height: 1.2;
}
.cc-desc {
font-size: 12px; color: var(--muted); line-height: 1.5;
flex: 1; margin-bottom: 13px;
}
.cc-cta {
font-family: var(--fh); font-size: 12px; font-weight: 700;
color: var(--cc-accent, var(--blue));
display: flex; align-items: center; gap: 4px;
text-transform: uppercase; letter-spacing: .5px;
}
.cc-cta svg { transition: transform .2s; }
.cc:hover .cc-cta svg { transform: translateX(4px); }
/* ============ FEATURE BENTO ============ */
.bento {
display: grid;
grid-template-columns: 2fr 1fr 1fr;
grid-template-rows: auto auto;
gap: 14px;
}
.bc {
background: grey;
border-radius: 20px;
border: 1.5px solid var(--border);
padding: 28px 24px;
position: relative; overflow: hidden;
}
.bc.span2 { grid-column: span 2; }
.bc.dark { background: var(--navy); border-color: var(--navy); }
.bc.gold { background: var(--gold); border-color: var(--gold); }
.bc.blue { background: var(--blue); border-color: var(--blue); }
.bc-big { font-family:var(--fh);font-size:60px;font-weight:900;line-height:1;letter-spacing:-3px;opacity:.08;position:absolute;bottom:-8px;right:10px; }
.bc-ico { font-size:32px;margin-bottom:14px; }
.bc-t { font-family:var(--fh);font-size:20px;font-weight:800;letter-spacing:-.5px;color:var(--navy);margin-bottom:7px; }
.bc-t.w { color:#fff; }
.bc-t.dk { color:var(--navy); }
.bc-d { font-size:13px;color:black; line-height:1.6; }
.bc-d.w { color:rgba(255,255,255,.5); }
.bc-d.dk { color:rgba(10,22,40,.6); }
/* ============ HOW IT WORKS ============ */
.how-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:32px;margin-top:40px; }
.how-step { }
.step-n { font-family:var(--fh);font-size:60px;font-weight:900;letter-spacing:-3px;color:rgba(255,255,255,.05);line-height:1;margin-bottom:-10px; }
.step-line { width:36px;height:3px;border-radius:2px;margin-bottom:14px; }
.step-t { font-family:var(--fh);font-size:18px;font-weight:700;color:#fff;margin-bottom:8px; }
.step-d { font-size:14px;color:rgba(255,255,255,.38);line-height:1.7; }
/* ============ POPULAR LINKS ============ */
.pop-row { display:flex;gap:10px;flex-wrap:wrap;margin-top:24px; }
.pop-tag {
display:inline-flex;align-items:center;gap:7px;
background:var(--white);border:1.5px solid var(--border);
border-radius:100px;padding:8px 16px;
font-size:13px;font-weight:600;color:var(--navy);
text-decoration:none;transition:all .2s;
}
.pop-tag:hover { background:var(--navy);color:#fff;border-color:var(--navy); }
.pop-dot { width:7px;height:7px;border-radius:50%;flex-shrink:0; }
/* ============ CTA BAND ============ */
.cta-band {
background: linear-gradient(135deg, var(--navy) 0%, var(--navy3) 100%);
border-radius: 22px;
padding: 56px 48px;
margin: 0 5% 72px;
display: flex; align-items: center; justify-content: space-between;
gap: 28px; flex-wrap: wrap;
position: relative; overflow: hidden;
}
.cta-band::before {
content: '';
position: absolute; inset: 0;
background-image:
linear-gradient(rgba(245,166,35,.05) 1px, transparent 1px),
linear-gradient(90deg, rgba(245,166,35,.05) 1px, transparent 1px);
background-size: 36px 36px;
}
.cta-band::after {
content: '';
position: absolute;
bottom: -80px; right: -80px;
width: 280px; height: 280px;
border: 60px solid rgba(26,79,214,.14);
border-radius: 50%;
}
.cta-l { position: relative; z-index: 1; }
.cta-l h2 {
font-family: var(--fh);
font-size: clamp(24px,3vw,40px);
font-weight: 800; line-height: 1.1;
letter-spacing: -1.5px; color: #fff; margin-bottom: 6px;
}
.cta-l h2 span { color: var(--gold); }
.cta-l p { font-size: 15px; color: rgba(255,255,255,.4); }
.cta-r { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }
/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
.bento { grid-template-columns: 1fr 1fr; }
.bc.span2 { grid-column: span 2; }
.how-grid { grid-template-columns: 1fr; gap: 20px; }
.faq-layout { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
.calcs-grid { grid-template-columns: 1fr 1fr; }
.bento { grid-template-columns: 1fr; }
.bc.span2 { grid-column: span 1; }
.hero-stats { flex-wrap: wrap; }
.hstat { min-width: 50%; }
.qcalc { gap: 8px; }
.qc-inp { width: 80px; }
.trust-bar { flex-direction: column; }
.tb-item { border-right: none; border-bottom: 1px solid var(--border); }
.cta-band { padding: 36px 28px; margin: 0 4% 52px; }
.cn-hero { padding-top: 80px; }
}
@media (max-width: 400px) {
.calcs-grid { grid-template-columns: 1fr; }
}
.calc-label {
font-size: 11px;
letter-spacing: 2px;
text-transform: uppercase;
color: rgba(255,255,255,.5);
margin-bottom: 10px;
font-weight: 600;
}
.mc-box {
background: rgba(255,255,255,0.05);
padding: 16px;
border-radius: 16px;
backdrop-filter: blur(10px);
}
.mc-display {
background: rgba(0,0,0,0.6);
padding: 14px;
border-radius: 12px;
text-align: right;
margin-bottom: 12px;
}
#mcPrev {
font-size: 14px;
color: rgba(255,255,255,0.5);
}
#mcDisp {
font-size: 32px;
color: #fff;
font-weight: bold;
}
.mc-grid {
display: grid;
grid-template-columns: repeat(4,1fr);
gap: 10px;
}
.mc-grid button {
height: 55px;
border: none;
font-size: 18px;
background: rgba(255,255,255,0.08);
color: #fff;
cursor: pointer;
transition: all 0.2s ease;
}
.mc-grid button:hover {
background: rgba(255,255,255,0.2);
}
.mc-grid button:active {
transform: scale(0.92);
}
.op {
background: #f59e0b;
color: #000;
}
.eq {
background: #16a34a;
}
.func {
background: #6b7280;
}
</style>
</head>
<body>
<!-- Body Inner -->
<div class="body-inner">
<?php include 'header.php'; ?>
<section class="gst-section">
<div class="container text-center">
<h1 class="gst-title text-white">Free Simple Interest Calculator</h1>
<p class="gst-sub text-white">Calculate the interest earned on your investment using the simple interest formula.</p>
<div class="gst-card mx-auto pt-5">
<div class="row g-4">
<div class="col-md-4">
<label class="gst-label">Principal Amount (₹)</label>
<input type="number" id="principal" class="form-control gst-input" placeholder="Enter amount">
</div>
<div class="col-md-4">
<label class="gst-label">Interest Rate (%)</label>
<input type="number" id="rate" class="form-control gst-input" placeholder="Interest rate">
</div>
<div class="col-md-4">
<label class="gst-label">Time (Years)</label>
<input type="number" id="time" class="form-control gst-input" placeholder="Years">
</div>
</div>
<hr class="my-4">
<div class="row text-center align-items-center">
<div class="col-md-6">
<h2 id="interest" class="gst-number text-success">₹0</h2>
<p class="gst-text">Total Interest</p>
</div>
<div class="col-md-6">
<h2 id="total" class="gst-number text-primary">₹0</h2>
<p class="gst-text">Total Amount</p>
</div>
</div>
</div>
</div>
</section>
<!-- <section class="py-5">
<div class="container">
<h2 class="mb-4">GST – Goods and Services Tax</h2>
<p>
GST (Goods and Services Tax) is an indirect tax introduced in India on July 1, 2017.
It is applied to the supply of goods and services and replaced many older indirect taxes
such as VAT, service tax, and excise duty to create a unified taxation system.
</p>
</div>
</section> -->
<section class="py-5 bg-light">
<div class="container">
<h2 class="text-center mb-5">How to Calculate Simple Interest</h2>
<div class="row align-items-center text-center">
<!-- Step 1 -->
<div class="col-md-3">
<div class="step-card p-4">
<i class="fa fa-coins step-icon"></i>
<h4>Enter Principal</h4>
<p>Enter the original amount invested or borrowed.</p>
</div>
</div>
<!-- Arrow -->
<div class="col-md-1 d-none d-md-block">
<i class="fa fa-arrow-right step-arrow"></i>
</div>
<!-- Step 2 -->
<div class="col-md-3">
<div class="step-card p-4">
<i class="fa fa-percentage step-icon"></i>
<h4>Interest Rate</h4>
<p>Enter the annual interest rate.</p>
</div>
</div>
<!-- Arrow -->
<div class="col-md-1 d-none d-md-block">
<i class="fa fa-arrow-right step-arrow"></i>
</div>
<!-- Step 3 -->
<div class="col-md-3">
<div class="step-card p-4">
<i class="fa fa-calendar step-icon"></i>
<h4>Time Period</h4>
<p>Enter the number of years for the investment.</p>
</div>
</div>
<!-- Arrow -->
<div class="col-md-1 d-none d-md-block">
<i class="fa fa-arrow-right step-arrow"></i>
</div>
<!-- Step 4 -->
<div class="col-md-3 pt-3">
<div class="step-card p-4">
<i class="fa fa-calculator step-icon"></i>
<h4>View Result</h4>
<p>See the interest earned and total amount.</p>
</div>
</div>
</div>
</div>
</section>
<section class="py-5">
<div class="container">
<h3 class="text-center mb-4">Key Elements of Simple Interest</h3>
<div class="row g-4">
<div class="col-md-6 col-lg-6 pt-4">
<div class="p-4 border rounded">
<h4>Principal</h4>
<p>The original amount invested or borrowed.</p>
</div>
</div>
<div class="col-md-6 col-lg-6 pt-4">
<div class="p-4 border rounded">
<h4>Interest Rate</h4>
<p>The percentage charged or earned each year.</p>
</div>
</div>
<div class="col-md-6 col-lg-6 pt-4">
<div class="p-4 border rounded">
<h4>Time Period</h4>
<p>The number of years the money is invested or borrowed.</p>
</div>
</div>
<div class="col-md-6 col-lg-6 pt-4">
<div class="p-4 border rounded">
<h4>Simple Interest</h4>
<p>The interest calculated only on the principal amount.</p>
</div>
</div>
</div>
</div>
</section>
<section class="py-5 bg-light">
<div class="container">
<h2 class="text-center mb-5">Simple Interest Example & Formula</h2>
<div class="row g-4">
<!-- Example Card -->
<div class="col-md-6">
<div class="p-4 bg-white border rounded shadow-sm h-100">
<h4 class="mb-3">Example</h4>
<p>Suppose you invest <strong>₹10,000</strong> at an interest rate of
<strong>10% per year</strong> for <strong>2 years</strong>.</p>
<ul class="list-unstyled mt-3">
<li><strong>Principal:</strong> ₹10,000</li>
<li><strong>Rate:</strong> 10%</li>
<li><strong>Time:</strong> 2 Years</li>
<li><strong>Total Interest:</strong> ₹2,000</li>
</ul>
<p class="mt-3">
So the final amount becomes <strong>₹12,000</strong>.
</p>
</div>
</div>
<!-- Formula Card -->
<div class="col-md-6">
<div class="p-4 bg-white border rounded shadow-sm h-100">
<h4 class="mb-3">Formula</h4>
<div class="p-3 bg-light border rounded text-center mb-3">
<strong style="font-size:20px">
SI = (P × R × T) / 100
</strong>
</div>
<ul class="list-unstyled">
<li><strong>SI</strong> = Simple Interest</li>
<li><strong>P</strong> = Principal Amount</li>
<li><strong>R</strong> = Interest Rate</li>
<li><strong>T</strong> = Time in Years</li>
</ul>
<p class="mt-3">
This formula calculates the interest earned on the principal amount.
</p>
</div>
</div>
</div>
</div>
</section>
<!-- ============ ALL CALCULATORS ============ -->
<section class="cn-section bg-paper" id="calculators" aria-labelledby="calc-heading">
<div class="container-xl">
<p class="eyebrow">All Tools</p>
<h2 class="sec-h" id="calc-heading">Find Your Calculator</h2>
<p class="sec-p" style="margin-bottom:28px">20+ free calculators across 5 categories. Pick one and get instant results.</p>
<!-- Category Tabs -->
<nav class="cat-tabs" aria-label="Calculator categories">
<button class="ctab active" onclick="filterCat('all',this)">All</button>
<button class="ctab tf" onclick="filterCat('finance',this)">💰 Finance</button>
<button class="ctab th" onclick="filterCat('health',this)">❤️ Health</button>
<button class="ctab tt" onclick="filterCat('time',this)">🕐 Time & Date</button>
<button class="ctab td" onclick="filterCat('discount',this)">🏷️ Discount</button>
<button class="ctab ts" onclick="filterCat('student',this)">🎓 Student</button>
</nav>
<div class="calcs-grid" id="calcsGrid">
<?php
$cards = [
// Finance
['finance','emi-calculator.php','🏦','EMI Calculator','Monthly loan EMI with interest breakdown.','#1a4fd6','#eef3ff'],
['finance','gst-calculator.php','₹','GST Calculator','Compute GST and final price for any product.','#1a4fd6','#eef3ff'],
['finance','salary-calculator.php','💼','Salary Calculator','In-hand salary after tax and deductions.','#1a4fd6','#eef3ff'],
['finance','compound-interest.php','📈','Compound Interest','See how your investments grow over time.','#1a4fd6','#eef3ff'],
['finance','simple-interest.php','💹','Simple Interest','Interest on any principal, rate and time.','#1a4fd6','#eef3ff'],
['finance','fd-calculator.php','🏛️','FD Calculator','Fixed Deposit maturity and interest earned.','#1a4fd6','#eef3ff'],
['finance','rd-calculator.php','💰','RD Calculator','Recurring Deposit returns and maturity value.','#1a4fd6','#eef3ff'],
// Health
['health','bmi-calculator.php','⚖️','BMI Calculator','Body Mass Index and ideal weight range.','#059669','#ecfdf5'],
['health','calorie-calculator.php','🔥','Calorie Calculator','Daily calorie needs by age, weight and activity.','#059669','#ecfdf5'],
['health','water-intake-calculator.php','💧','Water Intake','Recommended daily water intake for your body.','#059669','#ecfdf5'],
// Time
['time','age-calculator.php','🎂','Age Calculator','Exact age in years, months and days.','#0057ff','#eef4ff'],
['time','date-difference.php','📅','Date Difference','Gap between two dates in days, months or years.','#0057ff','#eef4ff'],
['time','workdays-calculator.php','🗓️','Work Days Calculator','Working days between dates, no weekends.','#0057ff','#eef4ff'],
['time','time-duration-calculator.php','⏱️','Time Duration','Hours and minutes between any two times.','#0057ff','#eef4ff'],
// Discount
['discount','percentage-calculator.php','%','Percentage Calculator','Percentages, ratios, increase and decrease.','#d97706','#fef9ee'],
['discount','discount-calculator.php','🏷️','Discount Calculator','Final price after any percentage discount.','#d97706','#fef9ee'],
['discount','fuel-cost-calculator.php','⛽','Fuel Cost Calculator','Estimate trip fuel cost by distance and mileage.','#d97706','#fef9ee'],
['discount','unit-converter.php','🔄','Unit Converter','Convert length, weight, temperature and more.','#d97706','#fef9ee'],
// Student
['student','student-percentage.php','📊','Percentage Calculator','Exam percentage from marks obtained.','#7c3aed','#f5f0ff'],
['student','grade-calculator.php','📝','Grade Calculator','Convert marks to letter grades easily.','#7c3aed','#f5f0ff'],
['student','gpa-calculator.php','🎓','GPA Calculator','Cumulative GPA across all subjects.','#7c3aed','#f5f0ff'],
['student','attendance-calculator.php','✅','Attendance Calculator','Check if attendance meets the threshold.','#7c3aed','#f5f0ff'],
];
$arrow = '<svg width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true"><path d="M1 6h10M6 1l5 5-5 5" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/></svg>';
foreach($cards as $c) {
[$cat,$href,$ico,$name,$desc,$accent,$bg] = $c;
echo '<a href="'.$href.'" class="cc" data-cat="'.$cat.'" style="--cc-accent:'.$accent.';--cc-bg:'.$bg.'" aria-label="Open '.$name.'">';
echo '<div class="cc-ico">'.$ico.'</div>';
echo '<p class="cc-name">'.htmlspecialchars($name).'</p>';
echo '<p class="cc-desc">'.htmlspecialchars($desc).'</p>';
echo '<span class="cc-cta">Free Calc '.$arrow.'</span>';
echo '</a>';
}
?>
</div>
</div>
</section>
<!-- Footer -->
<?PHP include"footer.php"; ?>
<!-- end: Footer -->
</div>
<!-- end: Body Inner -->
<!-- Scroll top -->
<a id="scrollTop"><i class="icon-chevron-up"></i><i class="icon-chevron-up"></i></a>
<!--Plugins-->
<script>
function filterCat(category, btn) {
const cards = document.querySelectorAll("#calcsGrid .cc");
const tabs = document.querySelectorAll(".ctab");
// Remove active from all buttons
tabs.forEach(tab => tab.classList.remove("active"));
// Add active to clicked button
btn.classList.add("active");
// Show/Hide cards
cards.forEach(card => {
const cat = card.getAttribute("data-cat");
if (category === "all" || cat === category) {
card.style.display = "block";
} else {
card.style.display = "none";
}
});
}
</script>
<script src="js/jquery.js"></script>
<script src="js/plugins.js"></script>
<!--Template functions-->
<script src="js/functions.js"></script>
<script>
document.getElementById("principal").addEventListener("input", calculateCI);
document.getElementById("rate").addEventListener("input", calculateCI);
document.getElementById("time").addEventListener("input", calculateCI);
function calculateCI(){
let P = parseFloat(document.getElementById("principal").value) || 0;
let R = parseFloat(document.getElementById("rate").value) || 0;
let T = parseFloat(document.getElementById("time").value) || 0;
let interest = (P * R * T) / 100;
let total = P + interest;
document.getElementById("interest").innerHTML = "₹" + interest.toFixed(2);
document.getElementById("total").innerHTML = "₹" + total.toFixed(2);
}
</script>
</body>
</html>