Valuation Approaches API¶
Cost approach and market approach methods.
Cost Approach¶
cost_approach
¶
Cost approach valuation methods.
Implements reproduction cost and replacement cost methods from Chapter 3, including obsolescence adjustments.
Classes¶
CostApproachResult
¶
Bases: BaseModel
Result of a cost approach valuation.
CostInput
¶
Bases: BaseModel
Validated development cost inputs.
ObsolescenceInput
¶
Bases: BaseModel
Validated obsolescence factors.
Functions¶
reproduction_cost(development_costs: dict, obsolescence_factors: dict | None = None) -> dict
¶
Calculate depreciated reproduction cost of an intangible asset.
Reproduction cost estimates the cost to create an exact replica of the subject asset using the same materials, design, and standards as the original.
Formula
Reproduction Cost = Sum(development_costs) * (1 - total_obsolescence) total_obsolescence = 1 - (1 - functional) * (1 - technological) * (1 - economic)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
development_costs
|
dict
|
Dict with keys like 'labor', 'materials', 'overhead', etc. Each value must be a non-negative number. |
required |
obsolescence_factors
|
dict | None
|
Optional dict with 'functional', 'technological', 'economic' keys. Values must be between 0 and 1. Defaults to no obsolescence. |
None
|
Returns:
| Type | Description |
|---|---|
dict
|
Dict with: - value: Depreciated reproduction cost - method: 'Reproduction Cost' - formula_reference: 'Chapter 3: Cost Approach - Reproduction Cost Method' - gross_cost: Total development cost before obsolescence - total_obsolescence_pct: Combined obsolescence percentage - steps: List of calculation steps - assumptions: Key assumptions used |
Raises:
| Type | Description |
|---|---|
ValueError
|
If development_costs is empty or contains negative values, or if obsolescence factors are out of range. |
Example
result = reproduction_cost( ... {"labor": 400000, "materials": 150000, "overhead": 100000}, ... {"functional": 0.15, "technological": 0.20, "economic": 0.05} ... ) result["value"] 476000.0
Source code in src/approaches/cost_approach.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | |
replacement_cost(current_cost: float, obsolescence_factors: dict | None = None) -> dict
¶
Calculate depreciated replacement cost of an intangible asset.
Replacement cost estimates the cost to create an asset with equivalent utility using modern materials, design, and standards (not an exact replica).
Formula
Replacement Cost = current_cost * (1 - total_obsolescence) total_obsolescence = 1 - (1 - functional) * (1 - technological) * (1 - economic)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
current_cost
|
float
|
Current cost to replace the asset with equivalent utility. Must be non-negative. |
required |
obsolescence_factors
|
dict | None
|
Optional dict with 'functional', 'technological', 'economic' keys. Values must be between 0 and 1. Defaults to no obsolescence. |
None
|
Returns:
| Type | Description |
|---|---|
dict
|
Dict with: - value: Depreciated replacement cost - method: 'Replacement Cost' - formula_reference: 'Chapter 3: Cost Approach - Replacement Cost Method' - gross_cost: Current replacement cost before obsolescence - total_obsolescence_pct: Combined obsolescence percentage - steps: List of calculation steps - assumptions: Key assumptions used |
Raises:
| Type | Description |
|---|---|
ValueError
|
If current_cost is negative or obsolescence factors are out of range. |
Example
result = replacement_cost( ... 500000, ... {"functional": 0.10, "technological": 0.30} ... ) result["value"] 315000.0
Source code in src/approaches/cost_approach.py
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 | |
Market Approach¶
market_approach
¶
Market approach valuation methods.
Implements comparable transactions and royalty capitalization methods from Chapter 3.
Classes¶
ComparableInput
¶
Bases: BaseModel
Validated comparable transaction input.
MarketApproachResult
¶
Bases: BaseModel
Result of a market approach valuation.
Functions¶
market_approach_comparables(comparables: list[dict], subject_revenue: float, adjustments: dict | None = None) -> dict
¶
Valuation based on comparable market transactions.
Applies revenue multiples from comparable transactions to the subject asset's revenue, with optional adjustments for size, risk, or other factors.
Formula
Multiple_i = sale_price_i / revenue_i Adjusted_Multiple_i = Multiple_i * (1 + adjustment_i) Implied_Value_i = Adjusted_Multiple_i * subject_revenue Value = median(Implied_Value_i)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
comparables
|
list[dict]
|
List of dicts with 'sale_price', 'revenue', 'asset_type' keys. Each comparable must have positive sale_price and revenue. |
required |
subject_revenue
|
float
|
Revenue of the subject asset. Must be positive. |
required |
adjustments
|
dict | None
|
Optional dict mapping comparable index (0-based) to adjustment factor (e.g., {0: 0.10, 1: -0.05}). Defaults to no adjustments. |
None
|
Returns:
| Type | Description |
|---|---|
dict
|
Dict with: - value: Median implied value from comparables - method: 'Market Approach - Comparables' - formula_reference: 'Chapter 3: Market Approach - Comparable Transactions' - multiples: List of calculated multiples per comparable - implied_values: List of implied values per comparable - range: (min, max) of implied values - steps: List of calculation steps - assumptions: Key assumptions used |
Raises:
| Type | Description |
|---|---|
ValueError
|
If comparables is empty, subject_revenue is non-positive, or comparable data is invalid. |
Example
comps = [ ... {"sale_price": 5000000, "revenue": 2000000, "asset_type": "trademark"}, ... {"sale_price": 8000000, "revenue": 3000000, "asset_type": "trademark"}, ... {"sale_price": 12000000, "revenue": 4000000, "asset_type": "trademark"}, ... ] result = market_approach_comparables(comps, subject_revenue=2500000) result["value"] 6250000.0
Source code in src/approaches/market_approach.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | |
royalty_capitalization(revenue: float, royalty_rate: float, discount_rate: float) -> dict
¶
Valuation using the royalty capitalization method.
Capitalizes a perpetual royalty stream into a present value. Appropriate for mature assets with stable, predictable revenue.
Formula
Value = (revenue * royalty_rate) / discount_rate = annual_royalty / discount_rate
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
revenue
|
float
|
Annual revenue attributable to the asset. Must be positive. |
required |
royalty_rate
|
float
|
Royalty rate as decimal (e.g., 0.04 for 4%). Must be between 0 and 1. |
required |
discount_rate
|
float
|
Discount rate as decimal. Must be positive. |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Dict with: - value: Capitalized royalty value - method: 'Royalty Capitalization' - formula_reference: 'Chapter 3: Market Approach - Royalty Capitalization' - annual_royalty: revenue * royalty_rate - steps: List of calculation steps - assumptions: Key assumptions used |
Raises:
| Type | Description |
|---|---|
ValueError
|
If inputs are out of valid range. |
Example
result = royalty_capitalization( ... revenue=10_000_000, ... royalty_rate=0.04, ... discount_rate=0.15 ... ) result["value"] 2666666.6666666665