time_value_calc
Perform time-value-of-money and depreciation calculations, including future value, present value, periods, rate, IRR, and depreciation schedules.
Instructions
Perform a variety of time-value-of-money calculations and depreciation methods.
Args: operation: One of "fv", "pv", "nper", "rate", "depreciation", "irr". rate, nper, pmt, pv, fv, when, guess: Parameters depending on operation. cost, salvage, life, method, period: Parameters for depreciation operations. cash_flows: For IRR, list of floats.
Returns: dict: Operation-specific outputs (e.g. numeric answer, schedule, irr value).
Raises: ValueError: If required args for the selected operation are missing.
Notes: - Pure calculations except for methods that may write results when integrated into workbook workflows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fv | No | ||
| pv | No | ||
| pmt | No | ||
| cost | No | ||
| life | No | ||
| nper | No | ||
| rate | No | ||
| when | No | end | |
| guess | No | ||
| method | No | sln | |
| period | No | ||
| salvage | No | ||
| operation | Yes | ||
| cash_flows | No |