Our Calculator module defines two functions:
- The interest function is used to calculate the interest for a deposit amount, amount, with the specified interest rate, rate, for a full investment period.
- The rate function is used to calculate the interest rate for which you can invest the deposit amount, amount, and receive the interest amount, interest.
Remember that interest and rate may mean completely different things outside the context of Calculator.