Solve for the missing number: future value, starting amount, rate or time
smartfin_calculate_missing_variableFinds the one missing number among four that sit in the same equation, a single amount earning one fixed yearly rate with interest added at a chosen frequency (FV = PV x (1 + r/n)^(n x t)): the future value, the starting amount, the annual rate, or the time in years. Use when the user knows three of the four and wants the fourth, e.g. "what rate turns $10,000 into $20,000 in 10 years", "how many years until $10,000 reaches $20,000 at 6%", or "what do I need to start with to reach $50,000". Do not use for regular contributions (use smartfin_project_savings_growth), for what a real investment did (use smartfin_calculate_investment_return), or for a forecast: one fixed rate is an assumption, and a required rate is the arithmetic, not a return to expect. To only grow an amount forward use smartfin_calculate_future_value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| years | No | Time in years; a part of a year is a decimal. Leave out when solving for years | |
| currency | No | Currency symbol for the amounts in the summary only; amounts are never converted. The link opens the page in US dollars, and how_to says to pick the currency there. Default USD | |
| solve_for | Yes | Which number to find: future_value, present_value (the starting amount), annual_rate_pct or years | |
| future_value | No | Amount at the end in the currency chosen. Leave out when solving for future_value | |
| present_value | No | Starting amount in the currency chosen. Leave out when solving for present_value | |
| annual_rate_pct | No | Yearly rate in %, above -100, e.g. 6. Leave out when solving for annual_rate_pct | |
| compounding_frequency | Yes | Times a year interest is added: 1 annually, 2 semiannually, 4 quarterly, 12 monthly, 52 weekly, 365 daily |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cite | Yes | How to credit this result | |
| data | Yes | ||
| next | Yes | Suggested follow-up calls | |
| links | Yes | ||
| how_to | Yes | Steps for the user to see or redo this on smartfin.fyi | |
| source | Yes | ||
| summary | Yes | Plain-language result the assistant can quote |