-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompound-interest.php
More file actions
962 lines (851 loc) · 38 KB
/
Copy pathcompound-interest.php
File metadata and controls
962 lines (851 loc) · 38 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
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
<!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="Compound Interest Calculator"/>
<link rel="icon" type="image/png" href="images/favicon.png">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Document title -->
<title>Free Compound Interest Calculator Online | Investment Growth Calculator | CalcSpeed</title>
<meta name="description" content="Calculate compound interest online instantly. Estimate investment growth, future value, earnings, and total returns with our free compound interest calculator.">
<meta name="keywords" content="Compound Interest Calculator, Investment Calculator, Future Value Calculator, Savings Calculator, Interest Calculator, Investment Growth Calculator, Compound Interest Formula, Financial Calculator">
<meta name="robots" content="index, follow">
<meta name="author" content="CalcSpeed">
<link rel="canonical" href="https://www.calcspeed.com/compound-interest-calculator">
<meta property="og:type" content="website">
<meta property="og:title" content="Free Compound Interest Calculator Online | CalcSpeed">
<meta property="og:description" content="Calculate investment growth, compound interest, future value and total returns instantly.">
<meta property="og:url" content="https://www.calcspeed.com/compound-interest-calculator">
<meta property="og:image" content="https://www.calcspeed.com/img/logo-dark1.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Free Compound Interest Calculator Online | CalcSpeed">
<meta name="twitter:description" content="Calculate compound interest and investment growth with our free online calculator.">
<meta name="twitter:image" content="https://www.calcspeed.com/img/logo-dark1.png">
<link href="css/plugins.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<script type="application/ld+json">
{
"@context":"https://schema.org",
"@type":"WebApplication",
"name":"Compound Interest Calculator",
"url":"https://www.calcspeed.com/compound-interest-calculator",
"description":"Free online compound interest calculator to estimate investment growth and future value.",
"applicationCategory":"FinanceApplication",
"operatingSystem":"All",
"offers":{
"@type":"Offer",
"price":"0",
"priceCurrency":"USD"
}
}
</script>
<style>
*{box-sizing:border-box}
:root{
--navy:#0a1628;--blue:#1a4fd6;--gold:#f5a623;
--muted:#64748b;--border:rgba(10,22,40,.09);
--paper:#f2f4f9;--white:#fff;
--fh:'Outfit',sans-serif;
}
/* SECTION 1: ABOUT */
.ci-page .ci-about{padding:42px 5%;background:#fff}
.ci-page .ci-about .inner{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.ci-page .ci-eyebrow{font-family:var(--fh);font-size:11px;font-weight:700;letter-spacing:3px;text-transform:uppercase;color:var(--blue);margin-bottom:12px}
.ci-page .ci-h{font-family:var(--fh);font-size:clamp(26px,3vw,38px);font-weight:800;color:var(--navy);letter-spacing:-1.2px;line-height:1.1;margin-bottom:16px}
.ci-page .ci-h span{color:var(--blue)}
.ci-page .ci-p{font-size:15px;color:var(--muted);line-height:1.85;margin-bottom:14px}
.ci-page .ci-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.ci-page .ci-tag{padding:6px 14px;border-radius:100px;border:1.5px solid var(--border);font-size:12px;font-weight:600;color:var(--muted);background:var(--paper)}
.ci-page .ci-info-card{background:var(--navy);border-radius:20px;padding:32px;color:#fff;position:relative;overflow:hidden}
.ci-page .ci-info-card::before{content:'%';position:absolute;right:-10px;bottom:-20px;font-family:var(--fh);font-size:160px;font-weight:900;color:rgba(255,255,255,.04);line-height:1;pointer-events:none}
.ci-page .ci-info-row{display:flex;align-items:flex-start;gap:14px;padding:14px 0;border-bottom:1px solid rgba(255,255,255,.07)}
.ci-page .ci-info-row:last-child{border-bottom:none;padding-bottom:0}
.ci-page .ci-info-ico{width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;font-size:17px;flex-shrink:0}
.ci-page .ci-info-l{font-size:11px;color:rgba(255,255,255,.4);font-weight:600;letter-spacing:.5px;text-transform:uppercase;margin-bottom:3px}
.ci-page .ci-info-v{font-size:15px;font-weight:700;color:#fff}
/* SECTION 2: KEY ELEMENTS */
.ci-page .ci-keys{padding:72px 5%;background:var(--paper)}
.ci-page .ci-keys .inner{max-width:1100px;margin:0 auto}
.ci-page .ci-keys-header{text-align:center;margin-bottom:48px}
.ci-page .keys-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.ci-page .key-card{background:#fff;border:1.5px solid var(--border);border-radius:18px;overflow:hidden;transition:transform .25s,box-shadow .25s,border-color .25s;position:relative}
.ci-page .key-card:hover{transform:translateY(-5px);box-shadow:0 20px 48px rgba(10,22,40,.1);border-color:rgba(26,79,214,.2)}
.ci-page .key-card::after{content:'';position:absolute;top:0;left:0;right:0;height:3px;border-radius:18px 18px 0 0;opacity:0;transition:opacity .2s}
.ci-page .key-card:hover::after{opacity:1}
.ci-page .key-card.k1::after{background:var(--blue)}
.ci-page .key-card.k2::after{background:#059669}
.ci-page .key-card.k3::after{background:#d97706}
.ci-page .key-card.k4::after{background:#7c3aed}
.ci-page .key-card-inner{padding:24px}
.ci-page .key-ico{width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:22px;margin-bottom:14px}
.ci-page .key-ico.k1{background:#eef3ff}
.ci-page .key-ico.k2{background:#ecfdf5}
.ci-page .key-ico.k3{background:#fff7ed}
.ci-page .key-ico.k4{background:#f5f0ff}
.ci-page .key-name{font-family:var(--fh);font-size:16px;font-weight:800;color:var(--navy);margin-bottom:6px}
.ci-page .key-desc{font-size:13px;color:var(--muted);line-height:1.7;margin-bottom:14px}
.ci-page .key-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:100px;font-size:11px;font-weight:700}
.ci-page .key-pill.k1{background:#eef3ff;color:#1040b8}
.ci-page .key-pill.k2{background:#ecfdf5;color:#065f46}
.ci-page .key-pill.k3{background:#fff7ed;color:#b45309}
.ci-page .key-pill.k4{background:#f5f0ff;color:#5b21b6}
.ci-page .key-pill::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.6}
/* SECTION 3: EXAMPLE + FORMULA */
.ci-page .ci-formula{padding:72px 5%;background:#fff}
.ci-page .ci-formula .inner{max-width:1100px;margin:0 auto}
.ci-page .ci-formula-header{text-align:center;margin-bottom:48px}
.ci-page .ef-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.ci-page .ef-card{border:1.5px solid var(--border);border-radius:18px;overflow:hidden}
.ci-page .ef-head{padding:18px 24px;border-bottom:1.5px solid var(--border);background:var(--paper);display:flex;align-items:center;gap:12px}
.ci-page .ef-head-ico{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.ci-page .ef-head-t{font-family:var(--fh);font-size:15px;font-weight:700;color:var(--navy)}
.ci-page .ef-head-s{font-size:12px;color:var(--muted);margin-top:2px}
.ci-page .ef-body{padding:24px;background:#fff}
.ci-page .ci-table{width:100%;border-collapse:collapse}
.ci-page .ci-table tr{border-bottom:1px solid var(--border)}
.ci-page .ci-table tr:last-child{border-bottom:none}
.ci-page .ci-table td{padding:10px 0;font-size:14px}
.ci-page .td-l{color:var(--muted);font-weight:500}
.ci-page .td-r{font-weight:700;color:var(--navy);text-align:right}
.ci-page .td-r.green{color:#059669}
.ci-page .td-r.blue{color:var(--blue)}
.ci-page .td-r.amber{color:#d97706}
.ci-page .growth-bar{margin-top:16px}
.ci-page .g-row{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.ci-page .g-label{font-size:12px;color:var(--muted);min-width:100px;font-weight:500}
.ci-page .g-track{flex:1;height:6px;border-radius:100px;background:var(--paper);border:1px solid var(--border);overflow:hidden}
.ci-page .g-fill{height:100%;border-radius:100px}
.ci-page .g-val{font-size:12px;font-weight:700;min-width:52px;text-align:right}
.ci-page .formula-dark{background:var(--navy);border-radius:12px;padding:22px;text-align:center;margin-bottom:16px}
.ci-page .formula-eq{font-size:22px;font-weight:700;color:#fff;font-family:var(--fh);letter-spacing:.3px;line-height:1.6}
.ci-page .formula-eq sup{font-size:14px}
.ci-page .formula-hint{font-size:11px;color:rgba(255,255,255,.38);margin-top:8px}
.ci-page .vars-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
.ci-page .var-box{background:var(--paper);border:1px solid var(--border);border-radius:10px;padding:12px 10px}
.ci-page .var-letter{font-family:var(--fh);font-size:20px;font-weight:800;color:var(--blue);margin-bottom:4px}
.ci-page .var-desc{font-size:12px;color:var(--muted);line-height:1.5}
.ci-page .insight-box{background:#fffbf0;border:1.5px solid #fde68a;border-radius:12px;padding:14px 16px}
.ci-page .insight-box p{font-size:13px;color:#92400e;line-height:1.65;margin:0}
.ci-page .insight-box strong{color:#78350f}
@media(max-width:700px){
.ci-page .ci-about .inner,.ci-page .keys-grid,.ci-page .ef-grid{grid-template-columns:1fr}
}
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 Compound Interest Calculator</h1>
<p class="gst-sub text-white">Calculate the future value of your investment using compound interest.</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 bg-light">
<div class="container">
<h2 class="text-center mb-5">How to Calculate Compound 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 initial investment amount.</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 investment time in years.</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 total interest and final amount.</p>
</div>
</div>
</div>
</div>
</section>
<div class="ci-page">
<!-- SECTION 1: ABOUT -->
<section class="ci-about">
<div class="inner">
<div>
<p class="ci-eyebrow">About Compound Interest</p>
<h2 class="ci-h">What is <span>Compound Interest</span> and why does it matter?</h2>
<p class="ci-p">Compound interest is interest calculated on both the <strong style="color:var(--navy)">initial principal</strong> and the <strong style="color:var(--navy)">accumulated interest</strong> from previous periods. Unlike simple interest, it grows exponentially — making it the most powerful force in long-term investing.</p>
<p class="ci-p">Whether you're saving in an FD, investing in mutual funds, or taking a loan — compound interest determines how fast your money grows or your debt compounds over time.</p>
<div class="ci-tags">
<span class="ci-tag">📈 Exponential Growth</span>
<span class="ci-tag">🏦 FD & RD</span>
<span class="ci-tag">💹 Mutual Funds</span>
<span class="ci-tag">⏳ Long-term Savings</span>
<span class="ci-tag">🔁 Reinvested Returns</span>
</div>
</div>
<div class="ci-info-card">
<div class="ci-info-row">
<div class="ci-info-ico">📐</div>
<div>
<div class="ci-info-l">Formula</div>
<div class="ci-info-v">A = P (1 + r/n)<sup style="font-size:11px">nt</sup></div>
</div>
</div>
<div class="ci-info-row">
<div class="ci-info-ico">🔁</div>
<div>
<div class="ci-info-l">Compounding frequency</div>
<div class="ci-info-v">Yearly · Quarterly · Monthly · Daily</div>
</div>
</div>
<div class="ci-info-row">
<div class="ci-info-ico">📈</div>
<div>
<div class="ci-info-l">₹10,000 at 10% for 10 years</div>
<div class="ci-info-v">Simple: ₹20,000 · Compound: ₹25,937</div>
</div>
</div>
<div class="ci-info-row">
<div class="ci-info-ico">⚡</div>
<div>
<div class="ci-info-l">Rule of 72</div>
<div class="ci-info-v">72 ÷ Rate = Years to double your money</div>
</div>
</div>
<div class="ci-info-row">
<div class="ci-info-ico">🎯</div>
<div>
<div class="ci-info-l">Best used for</div>
<div class="ci-info-v">Long-term investments & retirement planning</div>
</div>
</div>
</div>
</div>
</section>
<!-- SECTION 2: KEY ELEMENTS -->
<section class="ci-keys">
<div class="inner">
<div class="ci-keys-header">
<p class="ci-eyebrow">Building blocks</p>
<h2 class="ci-h" style="margin-bottom:10px">Key elements of compound interest</h2>
<p class="ci-p" style="max-width:500px;margin:0 auto;text-align:center">Four variables that together determine how fast your investment grows.</p>
</div>
<div class="keys-grid">
<div class="key-card k1">
<div class="key-card-inner">
<div class="key-ico k1">💰</div>
<p class="key-name">Principal (P)</p>
<p class="key-desc">The original amount you invest or deposit. A higher principal means a larger base on which interest is calculated — directly amplifying your final returns.</p>
<span class="key-pill k1">Starting investment amount</span>
</div>
</div>
<div class="key-card k2">
<div class="key-card-inner">
<div class="key-ico k2">📊</div>
<p class="key-name">Interest Rate (r)</p>
<p class="key-desc">The annual percentage earned on your investment. Even a 1–2% difference in rate can result in significantly different outcomes over a long time horizon.</p>
<span class="key-pill k2">Annual percentage return</span>
</div>
</div>
<div class="key-card k3">
<div class="key-card-inner">
<div class="key-ico k3">⏳</div>
<p class="key-name">Time Period (t)</p>
<p class="key-desc">The number of years the money stays invested. Time is the most powerful factor in compounding — the longer you invest, the more exponentially your wealth grows.</p>
<span class="key-pill k3">Duration in years</span>
</div>
</div>
<div class="key-card k4">
<div class="key-card-inner">
<div class="key-ico k4">🔁</div>
<p class="key-name">Compounding Frequency (n)</p>
<p class="key-desc">How often interest is added back — yearly, quarterly, monthly, or daily. More frequent compounding means interest earns interest faster, boosting overall returns.</p>
<span class="key-pill k4">Yearly · Quarterly · Monthly</span>
</div>
</div>
</div>
</div>
</section>
<!-- SECTION 3: EXAMPLE + FORMULA -->
<section class="ci-formula">
<div class="inner">
<div class="ci-formula-header">
<p class="ci-eyebrow">Reference</p>
<h2 class="ci-h" style="margin-bottom:10px">Compound interest example & formula</h2>
<p class="ci-p" style="max-width:500px;margin:0 auto;text-align:center">A worked example showing how ₹10,000 grows with compound interest.</p>
</div>
<div class="ef-grid">
<!-- Example Card -->
<div class="ef-card">
<div class="ef-head">
<div class="ef-head-ico" style="background:#ecfdf5">📋</div>
<div>
<div class="ef-head-t">Worked example</div>
<div class="ef-head-s">₹10,000 · 10% p.a. · 2 years · Annual compounding</div>
</div>
</div>
<div class="ef-body">
<table class="ci-table">
<tr><td class="td-l">Principal (P)</td><td class="td-r">₹10,000</td></tr>
<tr><td class="td-l">Annual Rate (r)</td><td class="td-r">10%</td></tr>
<tr><td class="td-l">Time (t)</td><td class="td-r">2 years</td></tr>
<tr><td class="td-l">Year 1 Amount</td><td class="td-r blue">₹11,000</td></tr>
<tr><td class="td-l">Year 2 Amount</td><td class="td-r blue">₹12,100</td></tr>
<tr><td class="td-l">Interest Earned</td><td class="td-r amber">₹2,100</td></tr>
<tr><td class="td-l">Final Amount (A)</td><td class="td-r green">₹12,100</td></tr>
</table>
<div class="growth-bar" style="margin-top:18px">
<div class="g-row">
<span class="g-label">Principal</span>
<div class="g-track"><div class="g-fill" style="width:82.6%;background:var(--blue)"></div></div>
<span class="g-val" style="color:var(--blue)">₹10,000</span>
</div>
<div class="g-row">
<span class="g-label">Interest</span>
<div class="g-track"><div class="g-fill" style="width:17.4%;background:#d97706"></div></div>
<span class="g-val" style="color:#d97706">₹2,100</span>
</div>
</div>
<div style="background:var(--paper);border:1px solid var(--border);border-radius:10px;padding:12px 14px;margin-top:14px;font-size:13px;color:var(--muted)">
💡 With <strong style="color:var(--navy)">simple interest</strong> the same investment earns only ₹2,000 — compound interest gives you <strong style="color:#059669">₹100 more</strong> by earning interest on interest.
</div>
</div>
</div>
<!-- Formula Card -->
<div class="ef-card">
<div class="ef-head">
<div class="ef-head-ico" style="background:#eef3ff">🔢</div>
<div>
<div class="ef-head-t">Compound interest formula</div>
<div class="ef-head-s">Annual compounding (n = 1)</div>
</div>
</div>
<div class="ef-body">
<div class="formula-dark">
<div class="formula-eq">A = P × (1 + r/n)<sup>nt</sup></div>
<div class="formula-hint">For annual compounding: A = P × (1 + r)<sup>t</sup> · Interest = A − P</div>
</div>
<div class="vars-grid">
<div class="var-box">
<div class="var-letter">A</div>
<div class="var-desc">Final amount including principal and all interest earned</div>
</div>
<div class="var-box">
<div class="var-letter">P</div>
<div class="var-desc">Principal — the initial investment or deposit amount</div>
</div>
<div class="var-box">
<div class="var-letter">r</div>
<div class="var-desc">Annual interest rate in decimal form (e.g. 10% = 0.10)</div>
</div>
<div class="var-box">
<div class="var-letter">t</div>
<div class="var-desc">Time period in years the money is invested or borrowed</div>
</div>
</div>
<div class="insight-box">
<p><strong>Key insight:</strong> The <strong>Rule of 72</strong> — divide 72 by your interest rate to find how many years it takes to double your money. At 10%, your investment doubles in just 7.2 years.</p>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
<!-- ============ 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>
<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>
<!-- 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 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 total = P * Math.pow((1 + R/100), T);
let interest = total - P;
document.getElementById("interest").innerHTML = "₹" + interest.toFixed(2);
document.getElementById("total").innerHTML = "₹" + total.toFixed(2);
}
</script>
</body>
</html>