personal-finance
v1.0.254 robust financial calculators based on deterministic mathematical principles.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
calculate_future_value
Calculate Future Value of a lump sum investment with compounding. FV = PV × (1 + r/n)^(n×t). Use compounding: annually, semi_annually, quarterly, monthly, daily, continuous.
| Parameter | Type | Description |
|---|---|---|
annual_rate * | number | |
present_value * | number | |
years * | number | |
compounding | string |
calculate_present_value
Calculate Present Value — what a future sum is worth today. PV = FV / (1 + r/n)^(n×t).
| Parameter | Type | Description |
|---|---|---|
annual_rate * | number | |
future_value * | number | |
years * | number | |
compounding | string |
calculate_annuity_fv
Calculate Future Value of regular periodic payments (annuity/SIP). Ordinary annuity: payments at end of period. Due: at beginning.
| Parameter | Type | Description |
|---|---|---|
annual_rate * | number | |
payment * | number | |
years * | number | |
annuity_type | string | |
frequency | string |
calculate_annuity_pv
Calculate Present Value of regular periodic payments. Useful for valuing loan payments, pension, lease payments.
| Parameter | Type | Description |
|---|---|---|
annual_rate * | number | |
payment * | number | |
years * | number | |
annuity_type | string | |
frequency | string |
calculate_perpetuity
Calculate Present Value of perpetuity (infinite periodic payments). Simple: PV = PMT/r. Growing: PV = PMT/(r-g).
| Parameter | Type | Description |
|---|---|---|
annual_rate * | number | |
payment * | number | |
growth_rate | number |
calculate_rule_of_72
Rule of 72: Approximate how many years to double your money. Years ≈ 72 / annual_rate.
| Parameter | Type | Description |
|---|---|---|
annual_rate * | number |
calculate_effective_rate
Calculate Effective Annual Rate from nominal rate. EAR = (1 + r/n)^n - 1. Compare rates with different compounding.
| Parameter | Type | Description |
|---|---|---|
nominal_rate * | number | |
compounding | string |
calculate_real_return
Calculate real (inflation-adjusted) rate of return using Fisher equation. (1 + real) = (1 + nominal) / (1 + inflation).
| Parameter | Type | Description |
|---|---|---|
inflation_rate * | number | |
nominal_rate * | number |
calculate_inflation_impact
Calculate future cost of something after inflation. Shows how much more you'll need in the future for the same expense.
| Parameter | Type | Description |
|---|---|---|
current_amount * | number | |
inflation_rate * | number | |
years * | number |
calculate_savings_needed
Calculate monthly savings required to reach a financial target. Accounts for existing savings and expected returns.
| Parameter | Type | Description |
|---|---|---|
annual_rate * | number | |
target_amount * | number | |
years * | number | |
current_savings | number |
calculate_emi
Calculate EMI (Equated Monthly Instalment) for a loan. EMI = P × r × (1+r)^n / ((1+r)^n - 1). Also shows total interest paid and interest-to-principal ratio.
| Parameter | Type | Description |
|---|---|---|
annual_rate * | number | |
principal * | number | |
tenure_years * | number |
loan_amortization
Generate loan amortization schedule showing month-wise principal/interest split. Shows how the interest component decreases and principal component increases over time.
| Parameter | Type | Description |
|---|---|---|
annual_rate * | number | |
principal * | number | |
tenure_years * | number |
compare_loans
Compare multiple loan options to find the best deal. Input: JSON array of loans, each with: principal, annual_rate, tenure_years, name. Example: [{"principal": 5000000, "annual_rate": 8.5, "tenure_years": 20, "name": "Bank A"}]
| Parameter | Type | Description |
|---|---|---|
loans_json * | string |
calculate_prepayment_savings
Calculate how much you save by prepaying a loan (extra EMI or lump sum). Shows interest saved and tenure reduction.
| Parameter | Type | Description |
|---|---|---|
annual_rate * | number | |
principal * | number | |
tenure_years * | number | |
lump_sum_month | integer | |
lump_sum_prepayment | number | |
monthly_prepayment | number |
invest_or_prepay_loan
Should you invest surplus money or prepay an existing loan? Compares post-tax investment return vs effective loan cost.
| Parameter | Type | Description |
|---|---|---|
investment_return * | number | |
loan_rate * | number | |
loan_has_tax_benefit | boolean | |
tax_bracket | number |
analyze_debt_consolidation
Analyze if consolidating multiple debts into one loan makes sense. Input debts_json: [{"name": "Credit Card", "balance": 100000, "rate": 36, "emi": 5000}]
| Parameter | Type | Description |
|---|---|---|
consolidated_rate * | number | |
consolidated_tenure_years * | number | |
debts_json * | string |
calculate_net_worth
Calculate net worth from assets and liabilities. Input JSON maps of name:value pairs. Example assets: {"house": 5000000, "stocks": 200000, "fd": 300000} Example liabilities: {"home_loan": 3000000, "car_loan": 500000}
| Parameter | Type | Description |
|---|---|---|
assets_json * | string | |
liabilities_json * | string |
analyze_financial_ratios
Calculate all key financial health ratios: Savings ratio, Debt-to-Income, Liquidity ratio, Solvency ratio, Expense ratio. Includes assessments and benchmarks.
| Parameter | Type | Description |
|---|---|---|
liquid_assets * | number | |
monthly_emis * | number | |
monthly_expenses * | number | |
monthly_income * | number | |
monthly_savings * | number | |
total_assets * | number | |
total_liabilities * | number |
calculate_emergency_fund
Calculate recommended emergency fund size (3-6 months of expenses). Adjusts for dependents and job stability. job_stability: stable, moderate, unstable.
| Parameter | Type | Description |
|---|---|---|
monthly_expenses * | number | |
dependents | integer | |
existing_emergency_fund | number | |
job_stability | string | |
monthly_emis | number |
analyze_budget
Analyze household budget using the 50/30/20 rule. 50% Needs | 30% Wants | 20% Savings. expenses_json: {"rent": 20000, "food": 10000, "entertainment": 5000}
| Parameter | Type | Description |
|---|---|---|
expenses_json * | string | |
monthly_income * | number | |
existing_emis | number | |
existing_sips | number |
plan_financial_goal
Plan for a financial goal (education, house, car, wedding, etc.). Adjusts target for inflation, calculates monthly SIP needed.
| Parameter | Type | Description |
|---|---|---|
goal_name * | string | |
target_amount_today * | number | |
years_to_goal * | number | |
current_savings | number | |
expected_return | number | |
inflation_rate | number |
plan_retirement
Comprehensive retirement planning calculator. Calculates: corpus needed at retirement, monthly SIP needed, accounts for inflation on expenses and pension shortfall.
| Parameter | Type | Description |
|---|---|---|
current_age * | integer | |
life_expectancy * | integer | |
monthly_expenses * | number | |
retirement_age * | integer | |
current_retirement_savings | number | |
inflation_rate | number | |
monthly_pension | number | |
post_retirement_return | number | |
pre_retirement_return | number |
plan_education
Plan for child's education expense. Adjusts cost for education inflation (typically higher than CPI). Calculates monthly SIP needed.
| Parameter | Type | Description |
|---|---|---|
child_current_age * | integer | |
current_education_cost * | number | |
education_start_age * | integer | |
current_savings | number | |
expected_return | number | |
inflation_rate | number |
calculate_insurance_need
Calculate life insurance need using Human Life Value (HLV) method. HLV = PV of future earnings + Outstanding loans + Future goals - Existing cover.
| Parameter | Type | Description |
|---|---|---|
annual_income * | number | |
years_of_income_to_replace * | integer | |
existing_insurance | number | |
existing_investments | number | |
future_goals_corpus | number | |
outstanding_loans | number |
financial_health_check
Comprehensive financial health score (0-100) with rating and recommendations. Evaluates: savings ratio, debt levels, emergency fund, net worth, insurance, liquidity, expense ratio, age-appropriate wealth.
| Parameter | Type | Description |
|---|---|---|
age * | integer | |
emergency_fund * | number | |
insurance_cover * | number | |
liquid_assets * | number | |
monthly_emis * | number | |
monthly_expenses * | number | |
monthly_income * | number | |
monthly_savings * | number | |
total_assets * | number | |
total_liabilities * | number |
calculate_bond_price
Calculate bond price using DCF of coupon payments and face value. Price = Σ[C/(1+r)^t] + FV/(1+r)^n. coupon_frequency: 1=annual, 2=semi-annual, 4=quarterly.
| Parameter | Type | Description |
|---|---|---|
coupon_rate * | number | |
face_value * | number | |
years_to_maturity * | number | |
ytm * | number | |
coupon_frequency | integer |
calculate_ytm
Calculate Yield to Maturity — the internal rate of return of a bond. Uses Newton-Raphson iteration for precision.
| Parameter | Type | Description |
|---|---|---|
coupon_rate * | number | |
face_value * | number | |
market_price * | number | |
years_to_maturity * | number | |
coupon_frequency | integer |
calculate_current_yield
Calculate Current Yield = Annual Coupon / Market Price × 100.
| Parameter | Type | Description |
|---|---|---|
annual_coupon * | number | |
market_price * | number |
calculate_bond_duration
Calculate Macaulay Duration and Modified Duration. Duration measures interest rate sensitivity of a bond. Modified Duration shows % price change per 1% yield change.
| Parameter | Type | Description |
|---|---|---|
coupon_rate * | number | |
face_value * | number | |
years_to_maturity * | number | |
ytm * | number | |
coupon_frequency | integer |
calculate_bond_convexity
Calculate bond convexity — second-order measure of interest rate risk. Higher convexity = less price sensitivity to large yield changes.
| Parameter | Type | Description |
|---|---|---|
coupon_rate * | number | |
face_value * | number | |
years_to_maturity * | number | |
ytm * | number | |
coupon_frequency | integer |
calculate_zero_coupon_bond
Price a zero-coupon bond. Price = FV / (1+r)^n. Zero-coupon bonds pay no periodic interest, sold at discount.
| Parameter | Type | Description |
|---|---|---|
face_value * | number | |
years_to_maturity * | number | |
ytm * | number |
value_stock_ddm
Value a stock using Gordon Growth Model (Dividend Discount Model). P = D1 / (r - g). For stable, dividend-paying companies. required_return must be > growth_rate.
| Parameter | Type | Description |
|---|---|---|
current_dividend * | number | |
growth_rate * | number | |
required_return * | number |
value_stock_two_stage_ddm
Two-stage DDM for companies with initial high growth transitioning to stable growth. Stage 1: High growth dividends discounted. Stage 2: Gordon model terminal value.
| Parameter | Type | Description |
|---|---|---|
current_dividend * | number | |
high_growth_rate * | number | |
high_growth_years * | integer | |
required_return * | number | |
stable_growth_rate * | number |
value_stock_pe
Value stock using P/E ratio relative valuation. Fair Price = EPS × Industry P/E. Optionally calculates PEG ratio for growth-adjusted valuation.
| Parameter | Type | Description |
|---|---|---|
eps * | number | |
industry_pe * | number | |
company_growth | number | |
industry_growth | number |
value_stock_dcf
Discounted Cash Flow (DCF) valuation. Input projected Free Cash Flows as JSON array: [100, 120, 140, 160, 180]. EV = Σ[FCF/(1+WACC)^t] + Terminal Value. Equity = EV - Net Debt.
| Parameter | Type | Description |
|---|---|---|
free_cash_flows_json * | string | |
terminal_growth * | number | |
wacc * | number | |
net_debt | number | |
shares_outstanding | number |
calculate_dividend_yield
Calculate dividend yield = Annual Dividend / Market Price × 100.
| Parameter | Type | Description |
|---|---|---|
dividend_per_share * | number | |
market_price * | number |
calculate_sip_returns
Calculate SIP (Systematic Investment Plan) returns. Shows future value, total invested, and wealth gained. Optional step_up_percentage: annual increase in SIP amount (e.g., 10 for 10%).
| Parameter | Type | Description |
|---|---|---|
annual_return * | number | |
monthly_investment * | number | |
years * | number | |
step_up_percentage | number |
calculate_sip_needed
Calculate monthly SIP needed to reach a target corpus. Inverse SIP calculation — find the monthly amount for a given goal.
| Parameter | Type | Description |
|---|---|---|
annual_return * | number | |
target_amount * | number | |
years * | number |
compare_lumpsum_vs_sip
Compare lump sum investment vs SIP for the same total amount. Lump sum: invest everything today. SIP: spread equally over the period.
| Parameter | Type | Description |
|---|---|---|
annual_return * | number | |
total_amount * | number | |
years * | number |
analyze_expense_ratio_impact
Show how expense ratio eats into your mutual fund returns over time. Optionally compare two funds with different expense ratios.
| Parameter | Type | Description |
|---|---|---|
annual_return * | number | |
expense_ratio * | number | |
investment_amount * | number | |
years * | number | |
comparison_expense_ratio | number |
calculate_swp
Systematic Withdrawal Plan — how long will your corpus last? Calculate sustainability of regular withdrawals from an investment corpus.
| Parameter | Type | Description |
|---|---|---|
annual_return * | number | |
corpus * | number | |
monthly_withdrawal * | number |
calculate_cagr
Calculate CAGR (Compound Annual Growth Rate). CAGR = (End/Start)^(1/n) - 1. Standard measure for investment returns.
| Parameter | Type | Description |
|---|---|---|
end_value * | number | |
start_value * | number | |
years * | number |
calculate_portfolio_return
Calculate expected portfolio return. E(Rp) = Σ w_i × E(R_i). weights: [0.6, 0.4], returns: [15, 8] (percentages).
| Parameter | Type | Description |
|---|---|---|
returns_json * | string | |
weights_json * | string |
calculate_portfolio_risk
Calculate portfolio risk (variance and standard deviation). Shows diversification benefit. correlations: NxN matrix, e.g., [[1, 0.3], [0.3, 1]].
| Parameter | Type | Description |
|---|---|---|
correlations_json * | string | |
std_devs_json * | string | |
weights_json * | string |
analyze_two_asset_portfolio
Analyze a two-asset portfolio — return, risk, and minimum variance weights. Also finds the optimal minimum variance portfolio allocation.
| Parameter | Type | Description |
|---|---|---|
correlation * | number | |
return_asset1 * | number | |
return_asset2 * | number | |
risk_asset1 * | number | |
risk_asset2 * | number | |
weight_asset1 * | number |
calculate_capm_return
Calculate expected return using CAPM. E(R) = Rf + β × (Rm - Rf). Beta < 1: defensive, Beta > 1: aggressive.
| Parameter | Type | Description |
|---|---|---|
beta * | number | |
market_return * | number | |
risk_free_rate * | number |
calculate_sharpe_ratio
Calculate Sharpe Ratio = (Rp - Rf) / σp. Measures risk-adjusted return per unit of total risk.
| Parameter | Type | Description |
|---|---|---|
portfolio_return * | number | |
portfolio_std_dev * | number | |
risk_free_rate * | number |
calculate_treynor_ratio
Calculate Treynor Ratio = (Rp - Rf) / β. Measures excess return per unit of systematic risk (beta).
| Parameter | Type | Description |
|---|---|---|
beta * | number | |
portfolio_return * | number | |
risk_free_rate * | number |
calculate_jensens_alpha
Calculate Jensen's Alpha = Rp - [Rf + β(Rm - Rf)]. Measures portfolio manager's skill — excess return over CAPM expectation.
| Parameter | Type | Description |
|---|---|---|
beta * | number | |
market_return * | number | |
portfolio_return * | number | |
risk_free_rate * | number |
calculate_information_ratio
Calculate Information Ratio = Active Return / Tracking Error. Measures consistency of outperformance vs benchmark.
| Parameter | Type | Description |
|---|---|---|
benchmark_return * | number | |
portfolio_return * | number | |
tracking_error * | number |
calculate_sortino_ratio
Calculate Sortino Ratio = (Rp - Rf) / Downside Deviation. Like Sharpe but only penalizes downside volatility, not upside.
| Parameter | Type | Description |
|---|---|---|
downside_deviation * | number | |
portfolio_return * | number | |
risk_free_rate * | number |
suggest_asset_allocation
Suggest asset allocation based on age, risk profile, and investment horizon. Uses 100-age equity rule with adjustments. risk_profile: conservative, moderately_conservative, moderate, moderately_aggressive, aggressive.
| Parameter | Type | Description |
|---|---|---|
age * | integer | |
investment_horizon_years * | number | |
risk_profile * | string |
rebalance_portfolio
Calculate trades needed to rebalance portfolio to target allocation. target_allocation: {"equity": 60, "debt": 30, "gold": 10} (percentages). current_values: {"equity": 700000, "debt": 250000, "gold": 50000} (amounts).
| Parameter | Type | Description |
|---|---|---|
current_values_json * | string | |
target_allocation_json * | string | |
additional_investment | number |