-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimple-compound-interest-calculator.html
More file actions
1978 lines (1716 loc) ยท 86.2 KB
/
Copy pathsimple-compound-interest-calculator.html
File metadata and controls
1978 lines (1716 loc) ยท 86.2 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
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/png" href="https://smartcalcworld.com/favicon.png">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Free Simple and Compound Interest Calculator. Calculate SI, CI, maturity amount with accurate formulas and visual breakdowns.">
<link rel="canonical" href="https://smartcalcworld.com/simple-compound-interest-calculator.html">
<title>Interest Calculator โ Simple & Compound Interest Calculator</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js" defer></script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "What is the difference between simple and compound interest?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Simple Interest (SI) is calculated only on the principal amount throughout the entire period using the formula SI = P ร R ร T / 100. Compound Interest (CI) is calculated on the principal plus accumulated interest from previous periods, using the formula A = P ร (1 + R/N)^(NรT), where N is the compounding frequency. Compound interest generates higher returns because interest earns interest, creating exponential growth over time."
}
},
{
"@type": "Question",
"name": "How does compounding frequency affect returns?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Higher compounding frequency results in greater returns. For the same principal, rate, and time, monthly compounding gives more than quarterly, which gives more than half-yearly or annual compounding. This is because interest is calculated and added to the principal more frequently, allowing accumulated interest to earn interest sooner. The difference becomes more significant over longer periods and higher interest rates."
}
},
{
"@type": "Question",
"name": "What is a good interest rate for savings?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Good interest rates vary by economic conditions and investment type. For savings accounts, 3-4% is typical. Fixed deposits may offer 5-8%, while riskier investments like stocks historically average 8-12% over long periods. Always compare rates across multiple banks and consider whether the rate is simple or compound interest. Remember that higher returns usually come with higher risk, so balance your portfolio according to your risk tolerance and time horizon."
}
},
{
"@type": "Question",
"name": "Can I use this calculator for loans?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes, interest calculators work for both savings and loans. For loans, the calculated interest represents what you'll pay to the lender. Simple interest loans charge interest only on the original principal. Compound interest loans (like credit cards) charge interest on principal plus accumulated interest, making them more expensive. For loans, lower compounding frequency is better for borrowers, while higher frequency benefits lenders."
}
},
{
"@type": "Question",
"name": "How do I calculate effective annual rate?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Effective Annual Rate (EAR) shows the true annual return accounting for compounding. Formula: EAR = (1 + R/N)^N - 1, where R is nominal annual rate and N is compounding frequency per year. For example, 6% compounded monthly has EAR = (1 + 0.06/12)^12 - 1 = 6.17%. This is higher than the nominal 6% due to monthly compounding. EAR allows accurate comparison between investments with different compounding frequencies."
}
},
{
"@type": "Question",
"name": "What time period gives the best compound interest growth?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Compound interest benefits increase dramatically with time due to exponential growth. While any period shows compounding advantage, 5+ years demonstrates significant difference from simple interest. For example, โน100,000 at 8% for 20 years: Simple Interest = โน160,000 total, Compound Interest (annual) = โน466,096 total - nearly 3x more! Starting early and staying invested long-term maximizes compound interest's wealth-building power."
}
},
{
"@type": "Question",
"name": "Is compound interest always better than simple interest?",
"acceptedAnswer": {
"@type": "Answer",
"text": "For investments and savings, compound interest is always better as it generates higher returns. However, for borrowers (loans), simple interest is preferable as it results in lower total repayment. Credit cards use daily compound interest, making them expensive. Personal loans may use simple interest or reducing balance methods. When investing, always choose compound interest with the highest frequency available. When borrowing, seek simple interest or fastest repayment to minimize interest costs."
}
},
{
"@type": "Question",
"name": "How accurate is this interest calculator?",
"acceptedAnswer": {
"@type": "Answer",
"text": "This calculator uses standard financial formulas: SI = PรRรT/100 for simple interest and A = Pร(1+R/N)^(NรT) for compound interest. Results are mathematically accurate for the inputs provided. However, real-world returns may differ due to taxes, fees, inflation, varying rates, or early withdrawal penalties. Use calculator results for planning and comparison, but consult financial institutions for exact terms and actual interest rates applicable to your specific situation."
}
}
]
}
</script>
<script src="/Tools/google-analytics.js"></script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
line-height: 1.6;
color: #333;
background: #f5f7fa;
}
header {
background: linear-gradient(135deg, #0891b2 0%, #059669 100%);
color: white;
padding: 1rem 0;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.site-title {
font-size: 1.5rem;
font-weight: 700;
}
nav {
display: flex;
gap: 2rem;
}
nav a {
color: white;
text-decoration: none;
font-weight: 500;
transition: opacity 0.3s;
}
nav a:hover {
opacity: 0.8;
}
.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
gap: 4px;
background: none;
border: none;
padding: 0;
}
.hamburger span {
width: 25px;
height: 3px;
background: white;
border-radius: 3px;
transition: 0.3s;
}
.mobile-nav {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
background: #0891b2;
flex-direction: column;
padding: 1rem;
gap: 1rem;
}
.mobile-nav.active {
display: flex;
}
.mobile-nav a {
color: white;
text-decoration: none;
padding: 0.5rem;
border-radius: 5px;
transition: background 0.3s;
}
.mobile-nav a:hover {
background: rgba(255,255,255,0.1);
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem 1rem;
}
.hero {
text-align: center;
margin-bottom: 3rem;
}
h1 {
font-size: 2.5rem;
color: #2d3748;
margin-bottom: 1rem;
font-weight: 800;
}
.hero-icon {
font-size: 3rem;
margin-bottom: 1rem;
}
.hero-subtitle {
font-size: 1.1rem;
color: #4a5568;
max-width: 700px;
margin: 0 auto;
}
.calculator-section {
background: white;
border-radius: 12px;
padding: 2rem;
box-shadow: 0 4px 6px rgba(0,0,0,0.07);
margin-bottom: 3rem;
}
.mode-tabs {
display: flex;
gap: 1rem;
margin-bottom: 2rem;
border-bottom: 2px solid #e2e8f0;
}
.tab-btn {
flex: 1;
padding: 1rem;
border: none;
background: transparent;
font-size: 1.1rem;
font-weight: 600;
color: #64748b;
cursor: pointer;
transition: all 0.3s;
border-bottom: 3px solid transparent;
margin-bottom: -2px;
}
.tab-btn:hover {
color: #0891b2;
}
.tab-btn.active {
color: #0891b2;
border-bottom-color: #0891b2;
}
.form-group {
margin-bottom: 1.5rem;
}
label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
color: #2d3748;
}
input[type="number"],
input[type="range"],
select {
width: 100%;
padding: 0.75rem;
border: 2px solid #e2e8f0;
border-radius: 8px;
font-size: 1rem;
transition: border-color 0.3s;
}
input[type="number"]:focus,
select:focus {
outline: none;
border-color: #0891b2;
}
input[type="range"] {
padding: 0;
height: 8px;
background: #e2e8f0;
border: none;
cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 20px;
height: 20px;
background: #0891b2;
cursor: pointer;
border-radius: 50%;
}
input[type="range"]::-moz-range-thumb {
width: 20px;
height: 20px;
background: #0891b2;
cursor: pointer;
border-radius: 50%;
border: none;
}
.input-slider-group {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
align-items: center;
}
.slider-container {
display: flex;
flex-direction: column;
}
.slider-value {
font-size: 0.9rem;
color: #0891b2;
font-weight: 600;
margin-top: 0.25rem;
}
.time-group {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 1rem;
}
.button-group {
display: flex;
gap: 1rem;
margin-top: 2rem;
}
button {
flex: 1;
padding: 1rem;
border: none;
border-radius: 8px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
}
.btn-calculate {
background: linear-gradient(135deg, #0891b2 0%, #059669 100%);
color: white;
}
.btn-reset {
background: #e2e8f0;
color: #4a5568;
}
button:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
button:active {
transform: translateY(0);
}
.results {
background: linear-gradient(135deg, #0891b2 0%, #059669 100%);
border-radius: 12px;
padding: 2rem;
margin-top: 2rem;
color: white;
display: none;
}
.results.active {
display: block;
}
.result-item {
background: rgba(255,255,255,0.1);
padding: 1.5rem;
border-radius: 8px;
margin-bottom: 1rem;
backdrop-filter: blur(10px);
}
.result-item:last-child {
margin-bottom: 0;
}
.result-label {
font-size: 0.9rem;
opacity: 0.9;
margin-bottom: 0.5rem;
}
.result-value {
font-size: 2rem;
font-weight: 700;
}
.charts-section {
display: none;
margin-top: 3rem;
}
.charts-section.active {
display: block;
}
.chart-container {
background: white;
border-radius: 12px;
padding: 2rem;
box-shadow: 0 4px 6px rgba(0,0,0,0.07);
margin-bottom: 2rem;
}
.chart-title {
font-size: 1.3rem;
font-weight: 700;
color: #2d3748;
margin-bottom: 1.5rem;
text-align: center;
}
.chart-wrapper {
position: relative;
height: 300px;
}
.comparison-section {
background: white;
border-radius: 12px;
padding: 2rem;
box-shadow: 0 4px 6px rgba(0,0,0,0.07);
margin-top: 2rem;
}
.comparison-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
margin-top: 1.5rem;
}
.comparison-card {
padding: 1.5rem;
border-radius: 8px;
border: 2px solid #e2e8f0;
text-align: center;
}
.comparison-card h4 {
color: #2d3748;
margin-bottom: 1rem;
font-size: 1.1rem;
}
.comparison-value {
font-size: 1.8rem;
font-weight: 700;
color: #0891b2;
}
.calculation-steps {
background: white;
border-radius: 12px;
padding: 2rem;
box-shadow: 0 4px 6px rgba(0,0,0,0.07);
margin-top: 2rem;
display: none;
}
.calculation-steps.active {
display: block;
}
.steps-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.toggle-steps-btn {
padding: 0.75rem 1.5rem;
background: linear-gradient(135deg, #0891b2 0%, #059669 100%);
color: white;
border: none;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
font-size: 0.95rem;
}
.toggle-steps-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.steps-content {
display: none;
}
.steps-content.show {
display: block;
animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.step-item {
background: #f8fafc;
border-left: 4px solid #0891b2;
padding: 1.5rem;
margin-bottom: 1.5rem;
border-radius: 8px;
}
.step-item h4 {
color: #0891b2;
margin-bottom: 1rem;
font-size: 1.2rem;
}
.step-formula {
background: #fff;
border: 2px dashed #cbd5e1;
padding: 1rem;
border-radius: 6px;
font-family: 'Courier New', monospace;
margin: 1rem 0;
overflow-x: auto;
}
.step-calculation {
background: #e0f2fe;
padding: 1rem;
border-radius: 6px;
margin: 0.5rem 0;
font-family: 'Courier New', monospace;
}
.step-result {
background: #dcfce7;
padding: 1rem;
border-radius: 6px;
margin-top: 1rem;
font-weight: 600;
color: #166534;
}
.step-explanation {
color: #64748b;
font-size: 0.95rem;
margin-top: 0.5rem;
line-height: 1.6;
}
.comparison-value {
font-size: 1.8rem;
font-weight: 700;
color: #0891b2;
}
.content-section {
background: white;
border-radius: 12px;
padding: 2.5rem;
box-shadow: 0 4px 6px rgba(0,0,0,0.07);
margin-top: 3rem;
}
.content-section h2 {
font-size: 2rem;
color: #2d3748;
margin-bottom: 1.5rem;
border-left: 4px solid #0891b2;
padding-left: 1rem;
}
.content-section h3 {
font-size: 1.5rem;
color: #2d3748;
margin: 2rem 0 1rem;
}
.content-section p {
margin-bottom: 1rem;
color: #4a5568;
line-height: 1.8;
}
.content-section ul {
margin: 1rem 0 1rem 2rem;
color: #4a5568;
}
.content-section li {
margin-bottom: 0.5rem;
line-height: 1.8;
}
.formula-box {
background: #f0f9ff;
border-left: 4px solid #0891b2;
padding: 1.5rem;
border-radius: 8px;
margin: 1.5rem 0;
font-family: 'Courier New', monospace;
font-size: 1.1rem;
}
.faq-section {
margin-top: 3rem;
}
.faq-item {
background: #f7fafc;
border-radius: 8px;
padding: 1.5rem;
margin-bottom: 1rem;
}
.faq-question {
font-size: 1.1rem;
font-weight: 600;
color: #2d3748;
margin-bottom: 0.75rem;
}
.faq-answer {
color: #4a5568;
line-height: 1.8;
}
.calculation-steps {
background: white;
border-radius: 12px;
padding: 2rem;
margin-top: 2rem;
box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}
.step-item {
background: #f7fafc;
border-left: 4px solid #0891b2;
padding: 1.5rem;
margin-bottom: 1rem;
border-radius: 8px;
}
.step-title {
font-weight: 700;
color: #2d3748;
margin-bottom: 0.75rem;
font-size: 1.05rem;
}
.step-formula {
background: #fff;
border: 1px solid #e2e8f0;
padding: 1rem;
border-radius: 6px;
font-family: 'Courier New', monospace;
margin: 0.5rem 0;
overflow-x: auto;
color: #0891b2;
font-size: 0.95rem;
}
.step-explanation {
color: #4a5568;
line-height: 1.7;
margin-top: 0.5rem;
}
.step-result {
background: #e0f2fe;
padding: 0.75rem;
border-radius: 6px;
margin-top: 0.75rem;
font-weight: 600;
color: #0891b2;
}
footer {
background: #2d3748;
color: white;
padding: 3rem 0 1rem;
margin-top: 4rem;
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
}
.footer-section h3 {
margin-bottom: 1rem;
color: #667eea;
}
.footer-section ul {
list-style: none;
}
.footer-section ul li {
margin-bottom: 0.5rem;
}
.footer-section a {
color: #cbd5e0;
text-decoration: none;
transition: color 0.3s;
}
.footer-section a:hover {
color: white;
}
.disclaimer {
background: rgba(0,0,0,0.2);
padding: 1rem;
border-radius: 8px;
font-size: 0.9rem;
color: #cbd5e0;
}
.copyright {
text-align: center;
padding-top: 2rem;
border-top: 1px solid rgba(255,255,255,0.1);
color: #cbd5e0;
}
@media (max-width: 768px) {
h1 {
font-size: 2rem;
}
.calculator-section {
padding: 1.5rem;
}
.input-slider-group {
grid-template-columns: 1fr;
}
.time-group {
grid-template-columns: 1fr;
}
.button-group {
flex-direction: column;
}
.result-value {
font-size: 1.5rem;
}
nav {
display: none;
}
.hamburger {
display: flex;
}
.chart-wrapper {
height: 250px;
}
.content-section {
padding: 1.5rem;
}
.content-section h2 {
font-size: 1.5rem;
}
.content-section h3 {
font-size: 1.2rem;
}
}
.calculator-link {
display: block;
padding: 1.5rem;
background: linear-gradient(135deg, #f6f8fb 0%, #e9ecef 100%);
border-radius: 8px;
text-decoration: none;
color: #2d3748;
font-weight: 600;
text-align: left;
transition: transform 0.3s, box-shadow 0.3s;
}
.calculator-link:hover {
transform: translateY(-5px);
box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
</style>
</head>
<body>
<header>
<div class="header-container">
<div class="site-title">๐ฐ Finance Calculators</div>
<nav>
<a href="https://smartcalcworld.com/index.html">Home</a>
<span class="nav-disabled">Student Calculators (Coming Soon)</span>
<span class="nav-disabled">Medical Calculators (Coming Soon)</span>
<a href="https://smartcalcworld.com/finance/finance-hub.html">Finance Calculators</a>
</nav>
<div class="hamburger" id="hamburgerBtn" aria-label="Menu">
<span></span>
<span></span>
<span></span>
</div>
</div>
<div class="mobile-nav" id="mobileNav">
<a href="https://smartcalcworld.com/index.html">Home</a>
<span class="nav-disabled">Student Calculators (Coming Soon)</span>
<span class="nav-disabled">Medical Calculators (Coming Soon)</span>
<a href="https://smartcalcworld.com/finance/finance-hub.html">Finance Calculators</a>
</div>
</header>
<div class="container">
<div class="hero">
<div class="hero-icon">๐ฐ</div>
<h1>Simple & Compound Interest Calculator</h1>
<p class="hero-subtitle">Calculate Simple Interest (SI) and Compound Interest (CI) with accurate formulas and visual comparisons</p>
</div>
<div class="calculator-section" id="calculator">
<div class="mode-tabs">
<button class="tab-btn active" onclick="switchMode('simple')">Simple Interest</button>
<button class="tab-btn" onclick="switchMode('compound')">Compound Interest</button>
</div>
<div class="form-group">
<label for="currency">Currency</label>
<select id="currency">
<option value="INR">๐ฎ๐ณ Indian Rupee (โน)</option>
<option value="USD">๐บ๐ธ US Dollar ($)</option>
<option value="EUR">๐ช๐บ Euro (โฌ)</option>
<option value="GBP">๐ฌ๐ง British Pound (ยฃ)</option>
<option value="JPY">๐ฏ๐ต Japanese Yen (ยฅ)</option>
<option value="AUD">๐ฆ๐บ Australian Dollar (A$)</option>
<option value="CAD">๐จ๐ฆ Canadian Dollar (C$)</option>
<option value="CHF">๐จ๐ญ Swiss Franc (CHF)</option>
<option value="CNY">๐จ๐ณ Chinese Yuan (ยฅ)</option>
<option value="SGD">๐ธ๐ฌ Singapore Dollar (S$)</option>
<option value="AED">๐ฆ๐ช UAE Dirham (AED)</option>
<option value="SAR">๐ธ๐ฆ Saudi Riyal (SR)</option>
</select>
</div>
<div class="form-group">
<label for="principal">Principal Amount</label>
<div class="input-slider-group">
<input type="number" id="principal" placeholder="Enter principal amount" min="100" step="100" value="10000">
<div class="slider-container">
<input type="range" id="principalSlider" min="100" max="10000000" step="100" value="10000">
<div class="slider-value" id="principalSliderValue">โน 10,000</div>
</div>
</div>
</div>
<div class="form-group">
<label for="rate">Annual Interest Rate (%)</label>
<div class="input-slider-group">
<input type="number" id="rate" placeholder="Enter interest rate" min="0.1" max="30" step="0.1" value="8">
<div class="slider-container">
<input type="range" id="rateSlider" min="0.1" max="30" step="0.1" value="8">
<div class="slider-value" id="rateSliderValue">8.0%</div>
</div>
</div>
</div>
<div class="form-group">
<label for="time">Time Period</label>
<div class="time-group">
<div class="input-slider-group">
<input type="number" id="time" placeholder="Enter time" min="1" step="1" value="5">
<div class="slider-container">
<input type="range" id="timeSlider" min="1" max="30" step="1" value="5">
<div class="slider-value" id="timeSliderValue">5 Years</div>
</div>
</div>
<select id="timeType">
<option value="years">Years</option>
<option value="months">Months</option>
</select>
</div>
</div>
<div class="form-group" id="compoundingGroup" style="display: none;">
<label for="compounding">Compounding Frequency</label>
<select id="compounding">
<option value="1">Annually (1 time/year)</option>
<option value="2">Semi-Annually (2 times/year)</option>
<option value="4" selected>Quarterly (4 times/year)</option>
<option value="12">Monthly (12 times/year)</option>
<option value="365">Daily (365 times/year)</option>
</select>
</div>
<div class="button-group">
<button class="btn-calculate" id="calculateBtn">Calculate Interest</button>
<button class="btn-reset" id="resetBtn">Reset</button>
</div>
<div class="results" id="results">
<div class="result-item">
<div class="result-label">Principal Amount</div>
<div class="result-value" id="principalValue">โน 0.00</div>
</div>
<div class="result-item">
<div class="result-label" id="interestLabel">Total Interest</div>
<div class="result-value" id="interestValue">โน 0.00</div>
</div>
<div class="result-item">
<div class="result-label">Maturity Amount</div>
<div class="result-value" id="maturityValue">โน 0.00</div>
</div>
<div class="result-item" id="earResult" style="display: none;">
<div class="result-label">Effective Annual Rate (EAR)</div>
<div class="result-value" id="earValue">0.00%</div>
</div>
</div>
</div>
<div class="calculation-steps" id="calculationSteps">
<div class="steps-header">
<h3 class="chart-title" style="margin-bottom: 0;">๐ Detailed Calculation </h3>
<button class="toggle-steps-btn" id="toggleStepsBtn" onclick="toggleSteps()">
<span id="toggleStepsText">Show Steps</span>
</button>
</div>
<div class="steps-content" id="stepsContent">
<!-- Steps will be dynamically generated here -->
</div>
</div>
<div class="charts-section" id="chartsSection">
<div class="chart-container">
<h3 class="chart-title">๐ Interest Growth Visualization</h3>
<div class="chart-wrapper">
<canvas id="interestChart"></canvas>
</div>
</div>
<div class="comparison-section">
<h3 class="chart-title">๐ Simple vs Compound Interest Comparison</h3>
<div class="comparison-grid">
<div class="comparison-card">
<h4>Simple Interest</h4>
<div class="comparison-value" id="siComparison">โน 0</div>
<p style="margin-top: 0.5rem; color: #64748b;">Linear Growth</p>
</div>
<div class="comparison-card">
<h4>Compound Interest</h4>
<div class="comparison-value" id="ciComparison">โน 0</div>
<p style="margin-top: 0.5rem; color: #64748b;">Exponential Growth</p>
</div>
<div class="comparison-card">
<h4>Difference</h4>
<div class="comparison-value" id="diffComparison">โน 0</div>
<p style="margin-top: 0.5rem; color: #64748b;" id="diffPercent">0% More</p>