calculate_compound_interest
Calculate the future value of a lump sum investment with compound interest. Input principal, annual rate, and duration to get final amount, total interest, and yearly breakdown.
Instructions
Compute compound growth of a lump sum with A = P·(1+r/n)^(n·t). Use for savings, investment or retirement projections without periodic contributions. Inputs: principal (initial amount), annual_rate (annual rate in percent), years (duration), optional compounds_per_year (compounding frequency, default annual). Returns final amount, total interest earned and a yearly breakdown. Read-only, deterministic. For loans/repayments use calculate_loan_payment or calculate_mortgage instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| years | Yes | Investment duration in years | |
| principal | Yes | Initial amount | |
| annual_rate | Yes | Annual interest rate in % | |
| compounds_per_year | No | Compounding frequency per year |