financial_calculator
Calculate compound interest, net present value, internal rate of return, loan payments, and other financial metrics for investment analysis and risk assessment.
Instructions
Brief description: Professional financial mathematics calculation tool, supporting compound interest, investment analysis, risk assessment, etc.
Examples:
financial_calculator(operation='compound_interest', principal=1000, rate=0.05, time=10)
financial_calculator(operation='npv', cash_flows=[-1000, 300, 400, 500], rate=0.1)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | Financial calculation operation. Supports: 'compound_interest', 'simple_interest', 'present_value', 'future_value', 'annuity', 'npv', 'irr', 'loan_payment' | |
| principal | No | Principal or initial investment amount, must be positive | |
| rate | No | Interest rate per period (decimal format) | |
| time | No | Time period in years or number of periods | |
| cash_flows | No | Sequence of cash flows for NPV/IRR calculation | |
| initial_investment | No | Initial investment amount | |
| payment | No | Periodic payment amount | |
| periods | No | Number of payment periods | |
| future_value | No | Future value | |
| present_value | No | Present value | |
| annual_rate | No | Annualized interest rate (decimal) | |
| payments_per_year | No | Number of payments per year | |
| risk_free_rate | No | Risk-free rate for Sharpe ratio | |
| returns | No | Sequence of returns for portfolio analysis | |
| prices | No | Sequence of asset prices |