Compound interest is calculated from the following components:
- Principal—The initial amount invested or loaned.
- Annual Contribution—The amount contributed to the investment annually.
- Interest Rate—The interest rate of the investment.
- Years—The number of years to calculate interest for.
- Compounding Interval—The interval at which interest is compounded.