Weighted average cost of capital
calculate_waccCompute WACC = weke + wdkd*(1 - tax) from capital weights and costs. Use this when you already have the weights and component costs; to derive them from market data use get_valuation_summary first. Returns the WACC and its equity/debt contributions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tax_rate | No | Marginal corporate tax rate as a decimal. | |
| cost_debt | Yes | Pre-tax cost of debt as a decimal. | |
| cost_equity | Yes | Cost of equity as a decimal (e.g. 0.10 for 10%). | |
| debt_weight | Yes | Market-value weight of debt (decimals summing to 1 with equity_weight). | |
| equity_weight | Yes | Market-value weight of equity (decimals summing to 1 with debt_weight). |
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 tools, an object for valuation tools. | |
| 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. |