Discounted cash flow valuation
calculate_dcfDiscounted cash flow valuation engine. Choose a method and supply its exact inputs to value a business from projected free cash flows, dividends, residual income, or economic profit. Covers FCFF/FCFE DCF, NPV/IRR, terminal values, and multi-stage growth. Use this for going-concern cash-flow businesses; for asset-anchored or financial firms use calculate_residual, for peer-based pricing use calculate_market_multiple, and for pre-profit companies use calculate_loss_making_company. Methods: dcf/npv: cash_flows, discount_rate; annuity: payment, discount_rate, periods; growing_annuity: payment, discount_rate, growth_rate, periods; perpetuity: payment, discount_rate; terminal_gordon: final_cash_flow, discount_rate, perpetual_growth; terminal_multiple: final_cash_flow, exit_multiple; viu_pre_tax: cash_flows, pre_tax_discount_rate; rnpv: cash_flows, discount_rate, probabilities; lease_pv: lease_payments, incremental_borrowing_rate. Supply exactly one method with its declared inputs (no defaults). An unknown method, a missing input, or an extra field returns an error envelope (code INVALID_ARGUMENT) instead of raising.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | Formula to apply; the tool description lists the exact inputs each value requires. | |
| payment | No | Level periodic payment in reporting currency. | |
| periods | No | Number of periods n (>=1). | |
| cash_flows | No | Projected cash flows in reporting currency, indexed t=1..n. | |
| growth_rate | No | Periodic growth rate as a decimal (0.03 = 3%). | |
| discount_rate | No | Discount rate as a decimal (0.10 = 10%); pre-tax when method=viu_pre_tax. | |
| exit_multiple | No | Exit multiple on the final flow, e.g. 8.0 for 8x. | |
| probabilities | No | Cumulative success probability per period in [0,1], aligned with cash_flows. | |
| lease_payments | No | Contractual lease payments in reporting currency, t=1..n. | |
| final_cash_flow | No | Final-period cash flow for the terminal value. | |
| perpetual_growth | No | Gordon growth rate (decimal); strictly below discount_rate. | |
| pre_tax_discount_rate | No | Pre-tax discount rate (decimal), required by viu_pre_tax (IAS 36). | |
| incremental_borrowing_rate | No | Lessee incremental borrowing rate (decimal), IFRS 16. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error detail, present only when status='error'. | |
| steps | No | Ordered computation steps, when the method reports them. | |
| value | No | Primary result: a number for scalar methods, an object for valuation methods. | |
| method | No | Method or tool name that produced the result. | |
| status | Yes | 'ok' on success, 'error' on failure. | |
| ticker | No | Ticker the result pertains to, when applicable. | |
| assumptions | No | Inputs and assumptions used, echoed for traceability. | |
| formula_ref | No | Formula or standards reference for the method. | |
| data_timestamp | No | ISO-8601 UTC timestamp of the underlying data, when fetched. |