Compound Interest Calculator
calculate_compound_interestCalculation, not advice. Verify with a professional before acting. Standard compound interest calculator. Returns future value, total contributions, interest earned, effective annual rate, and milestones. Pick this for a balance that grows with contributions. Pick calculate_opportunity_cost when the money is recurring spending being priced against investing, and calculate_loan_payoff when the balance amortizes down under a fixed payment. The response includes chart_hints with rendering directives any client can use.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| years | Yes | Time horizon in years. Integer, at least 1. REQUIRED, no default. | |
| principal | Yes | Starting balance. Decimal, at least 0. REQUIRED, no default. | |
| chart_title | No | Override for the chart title. Must not contain em-dashes or en-dashes. Max 120 characters. Optional. | |
| annual_rate_pct | Yes | Annual interest rate as a percentage, e.g. 7 not 0.07. Decimal from 0 to 100. REQUIRED, no default. | |
| rate_convention | No | 'nominal' or 'real'. 'real' unconditionally suppresses the inflation overlay; use when annual_rate_pct is already inflation-adjusted. Optional; defaults to 'nominal' when omitted. | |
| compounds_per_year | No | Compounding periods per year. Integer, greater than 0. Optional; defaults to 12 when omitted. | |
| inflation_rate_pct | No | Inflation rate as a percentage. Decimal: -1 (deprecated suppress, same as 0), 0 (no real-value overlay), or greater than 0 and less than 100 (explicit percentage, e.g. 3.5). Optional; defaults to 0 when omitted. | |
| monthly_contribution | No | Additional contribution added each month. Decimal, at least 0. Optional; defaults to 0 when omitted. | |
| apply_default_inflation | No | When true and inflation_rate_pct is 0, auto-selects inflation via MacroeconomicDefaults.ForHorizon. Ignored when inflation_rate_pct is greater than 0 or rate_convention is 'real'. Optional; defaults to false when omitted. |