PPF Calculator

PPF Calculator

Explanation:

  1. Additional Variables :

    • totalPrincipal: Tracks the total amount invested by the user over the years.
    • totalInterest: Tracks the cumulative interest earned over the years.
    • totalAmount: Tracks the total maturity value (Principal + Interest).
  2. Percentage Calculation :

    • The percentage contribution of Principal and Interest to the Total Maturity Value is calculated as:
      Principal Percentage = (Principal / Total Amount) * 100
      Interest Percentage = (Interest / Total Amount) * 100
      1. Result Display :

        • The result section now shows:
          • Total Principal Invested : The total amount contributed by the user.
          • Total Interest Earned : The total interest accumulated over the years.
          • Total Maturity Value : The final amount at the end of the investment period.
        • Each value is displayed with its percentage contribution to the total maturity value.

      Example Output:

      If you invest ₹1,00,000 annually for 15 years at an interest rate of 7.1%, the output will look like this:

      Total Principal Invested: ₹15,00,000.00 (65.22%)
      Total Interest Earned: ₹8,00,000.00 (34.78%)
      Total Maturity Value: ₹23,00,000.00
       
Scroll to Top