IFRS measurement, residual income and non-financial fair value
calculate_residualCalculates residual income, justified price-to-book, inventory/development residuals, and other IFRS/HKFRS measurements from one selected method and its required inputs.
Instructions
IFRS/HKFRS measurement engine. Compute goodwill and purchase-price allocation, impairment (IAS 36), inventory net realisable value, held-for-sale, debt waterfalls, cap tables, sum-of-the-parts and SPAC redemption; residual income and justified price-to-book; and non-financial asset fair value: investment property (IAS 40 / HKAS 40), PP&E revaluation via depreciated replacement cost (IAS 16) and biological assets at fair value less costs to sell (IAS 41). Use this for accounting-basis measurement of assets and equity; for going-concern cash flow use calculate_dcf and for peer multiples use calculate_market_multiple. Methods: goodwill: purchase_price, fair_value_net_identifiable_assets; ppa: purchase_price, tangible_assets_fv, identified_intangibles_fv; impairment_fvlcd: carrying_value, fair_value_less_costs_to_dispose; impairment_viu: carrying_value, value_in_use; inventory_nrv: carrying_value, net_realisable_value; held_for_sale: carrying_value, fair_value_less_costs_to_sell; debt_waterfall/cap_table: enterprise_value, claims; sotp: segments, net_debt, holding_discount; spac_redemption: trust_cash, shares_outstanding, redemption_price; investment_property: noi, cap_rate; ppe_revaluation: replacement_cost, accumulated_depreciation; biological_asset: expected_price, quantity, costs_to_sell; residual_income: book_value, net_income, cost_equity; justified_pb: roe, cost_equity, growth_rate; relief_from_royalty: revenue, royalty_rate, discount_rate, periods; mpeem: cash_flows, contributory_charges, discount_rate; with_without: with_cash_flows, without_cash_flows, discount_rate; recoverable_amount: fair_value_less_costs_to_dispose, value_in_use; liability_fulfilment: fulfilment_costs, mark_up, discount_rate; inventory_residual: selling_price, costs_to_complete, profit_allowance; development_residual: gross_development_value, development_costs, developer_profit. 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 |
|---|---|---|---|
| noi | No | Net operating income of the property (IAS 40). | |
| roe | No | Return on equity (decimal). | |
| claims | No | Ordered claims [{name, amount, priority}] for a waterfall. | |
| method | Yes | Formula to apply; the tool description lists the exact inputs each value requires. | |
| mark_up | No | Reasonable mark-up on fulfilment costs (decimal, IVS 220 Bottom-Up). | |
| periods | No | Number of periods n (>=1). | |
| revenue | No | Base-year revenue in reporting currency. | |
| cap_rate | No | Capitalisation rate as a decimal (0.06 = 6%). | |
| net_debt | No | Total debt minus cash and equivalents. | |
| quantity | No | Number of units (biological assets). | |
| segments | No | Segments [{name, value}] for a sum-of-the-parts. | |
| book_value | No | Book value of equity in reporting currency. | |
| cash_flows | No | Projected cash flows in reporting currency, indexed t=1..n. | |
| net_income | No | Net income in reporting currency. | |
| trust_cash | No | SPAC trust cash available for redemption. | |
| cost_equity | No | Cost of equity as a decimal (0.12 = 12%). | |
| growth_rate | No | Periodic growth rate as a decimal (0.03 = 3%). | |
| royalty_rate | No | Royalty rate as a decimal (0.05 = 5% of revenue). | |
| value_in_use | No | Value in use in reporting currency. | |
| costs_to_sell | No | Incremental costs to sell / dispose (IAS 41). | |
| discount_rate | No | Discount rate as a decimal (0.10 = 10%); pre-tax when method=viu_pre_tax. | |
| selling_price | No | Estimated selling price of the finished inventory (IVS 230 top-down). | |
| carrying_value | No | Carrying amount before the test. | |
| expected_price | No | Expected market price per biological-asset unit (IAS 41). | |
| purchase_price | No | Consideration transferred in reporting currency. | |
| with_cash_flows | No | After-tax cash flows with the asset in use (IVS 210 with-and-without). | |
| developer_profit | No | Required developer's profit/risk allowance (IVS 410). | |
| enterprise_value | No | Enterprise value distributed across claims. | |
| fulfilment_costs | No | Costs required to fulfil the performance obligation per period (IVS 220 Bottom-Up). | |
| holding_discount | No | Holding-company discount as a decimal. | |
| profit_allowance | No | Estimated profit allowance on the completion/disposal effort. | |
| redemption_price | No | SPAC redemption price per share. | |
| replacement_cost | No | Depreciated-replacement-cost gross value of PP&E (IAS 16). | |
| costs_to_complete | No | Remaining costs to complete work-in-process inventory (IVS 230). | |
| development_costs | No | All known/anticipated costs to complete the development. | |
| shares_outstanding | No | Shares outstanding. | |
| tangible_assets_fv | No | Fair value of tangible assets. | |
| without_cash_flows | No | After-tax cash flows absent the asset (IVS 210 with-and-without), aligned with with_cash_flows. | |
| contributory_charges | No | Contributory-asset charges (economic rent) per period, aligned with cash_flows (IVS 210 MPEEM). | |
| net_realisable_value | No | Estimated NRV in reporting currency. | |
| gross_development_value | No | Anticipated value of the completed development (IVS 410 residual method). | |
| accumulated_depreciation | No | Accumulated depreciation to deduct (IAS 16). | |
| identified_intangibles_fv | No | Fair value of separately identified intangibles. | |
| fair_value_less_costs_to_sell | No | FV less costs to sell in reporting currency. | |
| fair_value_less_costs_to_dispose | No | FVLCD in reporting currency. | |
| fair_value_net_identifiable_assets | No | Fair value of net identifiable assets. |
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. |