compound_interest
Calculate compound growth for a starting balance over a specified period, with optional equal contributions added at each compounding interval.
Instructions
Calculates compound growth with optional equal contributions made at the end of every compounding period
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| years | Yes | Duration in years | |
| principal | Yes | Starting balance | |
| compoundsPerYear | Yes | Compounding periods per year | |
| annualRatePercent | Yes | Nominal annual rate in percent units; use 5 for 5% | |
| contributionPerPeriod | No | Optional contribution made at the end of each period |