calculate_npv
Calculate Net Present Value to evaluate investment profitability by discounting future cash flows at a specified rate.
Instructions
Calculate Net Present Value of cash flows
Input Schema
Name | Required | Description | Default |
---|---|---|---|
cashFlows | Yes | ||
initialInvestment | No | ||
rate | Yes | Discount rate as decimal (e.g., 0.1 for 10%) |
Input Schema (JSON Schema)
{
"properties": {
"cashFlows": {
"items": {
"type": "number"
},
"type": "array"
},
"initialInvestment": {
"default": 0,
"type": "number"
},
"rate": {
"description": "Discount rate as decimal (e.g., 0.1 for 10%)",
"type": "number"
}
},
"required": [
"rate",
"cashFlows"
],
"type": "object"
}