calculate_retirement
Compute retirement corpus needed, monthly savings to reach a goal, or safe withdrawal amount under the 4% rule.
Instructions
Retirement planning in three modes: (1) corpus_needed — how much lump-sum do I need at retirement? (2) monthly_contribution_for — how much SIP to hit a target corpus? (3) safe_withdrawal — how much can I safely withdraw (4% rule)? Example queries: 'how much corpus to retire with ₹50k/month for 30 years', 'SIP needed to build 2 crore corpus in 20 years', 'safe monthly withdrawal from $1M at 4% rule'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Which calculation to perform. | |
| annual_expense | No | [corpus_needed] Annual expense in today's money. Required for corpus_needed. | |
| years_in_retirement | No | [corpus_needed] Number of years in retirement. | |
| post_retirement_return | No | [corpus_needed] Decimal nominal annual return during retirement. | |
| inflation | No | [corpus_needed] Decimal annual inflation rate. | |
| target_corpus | No | [monthly_contribution_for] Target retirement corpus. Required. | |
| years_to_retirement | No | [monthly_contribution_for] Years until retirement. Required. | |
| annual_return | No | [monthly_contribution_for] Decimal expected annual return. | |
| current_savings | No | [monthly_contribution_for / corpus_needed] Existing savings that will compound. | |
| corpus | No | [safe_withdrawal] Retirement corpus (lump-sum). Required. | |
| withdrawal_rate | No | [safe_withdrawal] Decimal annual withdrawal rate (default 0.04 = 4% rule). |