Investment Calculator

The Investment Calculator is a JavaScript program that allows users to calculate the return on investment over a specific time period. It incorporates various JavaScript concepts and features, such as variables, mathematical operators, functions, logic, loops, and more.

Features

  • Input the initial investment amount.
  • Enter the annual interest rate.
  • Specify the investment duration in years.
  • Calculate the total amount obtained after the investment duration, considering the provided interest rate.

Example

Suppose you have an initial investment amount of $10,000, an annual interest rate of 5%, and you want to invest for 3 years. The Investment Calculator will calculate the total amount you will have after 3 years, taking into account the interest rate.

Input:

  • Initial investment amount: $10,000
  • Annual interest rate: 5%
  • Investment duration: 3 years

Output:

  • Total investment after 3 years: $11,576.25

Contributions

Contributions to the Investment Calculator project are welcome. If you find any issues or have suggestions for improvement, please feel free to open an issue or submit a pull request.