compound_interest
Calculates compound interest using the formula A = P(1 + r/n)^(nt), where A is final amount, P is principal, r is annual rate, n is compounding frequency per year, and t is time in years. (cost: 1 credit)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | integer, required, number of times interest is compounded per year, no units, no default | |
| rate | No | number, required, annual interest rate, plain number (5 = 5%), no default | |
| time | No | number, required, investment duration, years, no default | |
| principal | No | number, required, initial investment amount, currency units, no default |