Asset Types API¶
Asset-specific valuation models for IP, brands, technology, customer relationships, and human capital.
IP Valuation¶
ip_valuation
¶
Intellectual property valuation methods.
Implements valuation for patents, copyrights, and trade secrets using risk-adjusted income approaches.
Classes¶
CopyrightInputs
¶
Bases: BaseModel
Inputs for copyright valuation.
OptionPricingInputs
¶
Bases: BaseModel
Inputs for real options patent valuation.
PatentInputs
¶
Bases: BaseModel
Inputs for patent valuation.
PatentPortfolioInputs
¶
Bases: BaseModel
Inputs for patent portfolio valuation.
TradeSecretInputs
¶
Bases: BaseModel
Inputs for trade secret valuation.
Functions¶
copyright_valuation(projected_revenue: float, useful_life: int, discount_rate: float, royalty_rate: float) -> dict
¶
Calculate PV of expected copyright royalty/licensing income.
Uses the relief-from-royalty approach to value copyrights based on projected revenue streams over the asset's useful life.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
projected_revenue
|
float
|
Total projected revenue over useful life. |
required |
useful_life
|
int
|
Useful life in years. |
required |
discount_rate
|
float
|
Discount rate (decimal). |
required |
royalty_rate
|
float
|
Applicable royalty rate (decimal). |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Dict with value, method, formula_reference, steps, and assumptions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If any input is invalid. |
Source code in src/asset_types/ip_valuation.py
option_pricing_patent(exercise_cost: float, expected_value: float, volatility: float, time_to_expiry: float, risk_free_rate: float) -> dict
¶
Value a patent using Black-Scholes real options approximation.
Treats a patent as a call option: the right (but not obligation) to commercialize at cost K. This captures the value of managerial flexibility to wait, expand, or abandon the project.
Formula (Black-Scholes call option): d1 = [ln(S/K) + (r + σ²/2)T] / (σ√T) d2 = d1 - σ√T C = S·N(d1) - K·e^(-rT)·N(d2)
Where
S = expected value of commercialized patent K = exercise cost (commercialization cost) σ = volatility of expected value T = time to patent expiry r = risk-free rate N() = cumulative standard normal distribution
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
exercise_cost
|
float
|
Cost to commercialize the patent (strike price K). |
required |
expected_value
|
float
|
Expected value if commercialized (underlying S). |
required |
volatility
|
float
|
Volatility of expected value (0-2, decimal). |
required |
time_to_expiry
|
float
|
Time remaining until patent expires (years). |
required |
risk_free_rate
|
float
|
Risk-free interest rate (decimal). |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Dict with value, method, formula_reference, steps, and assumptions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If any input is invalid. |
Example
result = option_pricing_patent( ... exercise_cost=5_000_000, ... expected_value=10_000_000, ... volatility=0.40, ... time_to_expiry=10, ... risk_free_rate=0.03, ... ) result["value"] > 5_000_000 # option value > intrinsic True
Reference
Trigeorgis, L. (1996). Real Options: Managerial Flexibility and Strategy. MIT Press. Chapter 5.
Source code in src/asset_types/ip_valuation.py
424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 | |
patent_portfolio_valuation(patents: Sequence[dict], diversification_factor: float = 0.1) -> dict
¶
Calculate total patent portfolio value with diversification adjustment.
Sums individual patent values and applies a diversification discount/premium based on portfolio concentration across technology categories. A more diversified portfolio receives a smaller adjustment.
Formula
Portfolio Value = sum(individual_values) x (1 - diversification_factor x HHI)
where HHI (Herfindahl-Hirschman Index) measures concentration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
patents
|
Sequence[dict]
|
List of dicts, each with 'value' (float) and optionally 'category' (str) and 'remaining_life' (int). |
required |
diversification_factor
|
float
|
Adjustment factor (0-1), default 0.1. |
0.1
|
Returns:
| Type | Description |
|---|---|
dict
|
Dict with value, method, formula_reference, steps, and assumptions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If patents list is empty or contains invalid data. |
Example
patents = [ ... {"value": 1000000, "category": "pharma"}, ... {"value": 500000, "category": "tech"}, ... {"value": 750000, "category": "pharma"}, ... ] result = patent_portfolio_valuation(patents) result["value"] < 2250000 # diversification adjustment True
Source code in src/asset_types/ip_valuation.py
327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 | |
patent_valuation(remaining_life: int, cash_flow_projections: Sequence[float], probability_of_success: float, discount_rate: float, comparable_license_rates: Sequence[float] | None = None) -> dict
¶
Calculate risk-adjusted patent value with probability weighting.
Values a patent by discounting projected cash flows and applying probability of commercial success. Comparable license rates provide a cross-check via the relief-from-royalty approach.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
remaining_life
|
int
|
Remaining patent life in years. |
required |
cash_flow_projections
|
Sequence[float]
|
Projected annual cash flows from the patent. |
required |
probability_of_success
|
float
|
Probability of commercial success (0-1). |
required |
discount_rate
|
float
|
Discount rate (decimal). |
required |
comparable_license_rates
|
Sequence[float] | None
|
Optional comparable license royalty rates. |
None
|
Returns:
| Type | Description |
|---|---|
dict
|
Dict with value, method, formula_reference, steps, and assumptions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If any input is invalid. |
Source code in src/asset_types/ip_valuation.py
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 | |
trade_secret_valuation(development_cost: float, economic_life: int, competitive_advantage_period: int, discount_rate: float, secrecy_probability: float) -> dict
¶
Value a trade secret incorporating secrecy risk over time.
Combines cost approach (development cost) with income approach (competitive advantage period), adjusted for the probability of maintaining secrecy over time.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
development_cost
|
float
|
Cost to develop the trade secret. |
required |
economic_life
|
int
|
Expected economic life in years. |
required |
competitive_advantage_period
|
int
|
Period of competitive advantage in years. |
required |
discount_rate
|
float
|
Discount rate (decimal). |
required |
secrecy_probability
|
float
|
Probability of maintaining secrecy (0-1). |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Dict with value, method, formula_reference, steps, and assumptions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If any input is invalid. |
Source code in src/asset_types/ip_valuation.py
221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 | |
Brand Valuation¶
brand_valuation
¶
Brand and trademark valuation methods.
Implements brand value using Relief-from-Royalty and Excess Earnings methods with brand strength adjustments.
Classes¶
BrandRoyaltyInputs
¶
Bases: BaseModel
Inputs for brand royalty rate from comparables.
BrandStrengthInputs
¶
Bases: BaseModel
Inputs for brand strength index calculation.
InterbrandInputs
¶
Bases: BaseModel
Inputs for Interbrand brand valuation.
TrademarkInputs
¶
Bases: BaseModel
Inputs for trademark/brand valuation.
Functions¶
brand_royalty_rate_from_comparables(comparable_rates: Sequence[float], brand_strength_adjustment: float = 0.0) -> dict
¶
Derive brand royalty rate from comparable brand licensing agreements.
Calculates a base rate from comparable transactions (median), then adjusts for the subject brand's relative strength. A stronger brand commands a higher rate; a weaker brand commands a lower rate.
Formula
Base Rate = Median(comparable_rates) Adjusted Rate = Base Rate x (1 + brand_strength_adjustment)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
comparable_rates
|
Sequence[float]
|
List of comparable brand royalty rates (as decimals). |
required |
brand_strength_adjustment
|
float
|
Adjustment factor (-0.5 to +0.5). Positive for stronger brands, negative for weaker. |
0.0
|
Returns:
| Type | Description |
|---|---|
dict
|
Dict with value (royalty rate), method, formula_reference, steps, and assumptions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If comparable_rates is empty or adjustment is out of range. |
Example
rates = [0.03, 0.04, 0.05, 0.06, 0.04] result = brand_royalty_rate_from_comparables(rates, 0.10) result["value"] # 0.04 * 1.10 = 0.044 0.044
Source code in src/asset_types/brand_valuation.py
364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 | |
brand_strength_index(revenue_stability: float, market_share: float, geographic_reach: float, customer_loyalty: float, investment_level: float) -> dict
¶
Calculate composite brand strength score on a 0-100 scale.
Combines five dimensions of brand strength using weighted scoring: - Revenue stability (25%): Consistency and predictability of brand revenue - Market share (25%): Relative position in the market - Geographic reach (20%): Breadth of market coverage - Customer loyalty (20%): Retention and advocacy metrics - Investment level (10%): Ongoing brand investment and support
Formula
BSI = (RS x 0.25 + MS x 0.25 + GR x 0.20 + CL x 0.20 + IL x 0.10) x 100
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
revenue_stability
|
float
|
Revenue stability score (0-1). |
required |
market_share
|
float
|
Market share score (0-1). |
required |
geographic_reach
|
float
|
Geographic reach score (0-1). |
required |
customer_loyalty
|
float
|
Customer loyalty score (0-1). |
required |
investment_level
|
float
|
Brand investment level score (0-1). |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Dict with value (0-100), method, formula_reference, steps, and assumptions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If any input is outside [0, 1]. |
Example
result = brand_strength_index(0.8, 0.6, 0.7, 0.9, 0.5) result["value"] 72.0
Source code in src/asset_types/brand_valuation.py
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 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 | |
interbrand_brand_valuation(brand_earnings: float, role_of_brand_index: float, brand_strength_score: float, discount_rate: float) -> dict
¶
Value a brand using the Interbrand methodology.
The Interbrand method calculates brand value as
Brand Value = Branded Earnings x Brand Multiple
Where
Branded Earnings = Brand Earnings x Role of Brand Index Brand Multiple = derived from Brand Strength Score via discount rate
The brand strength score (0-100) maps to a discount rate via the brand-specific discount rate curve. Stronger brands have lower discount rates, resulting in higher multiples.
Formula
Branded Earnings = Earnings x ROBI Brand Multiple = 1 / (discount_rate - g) [Gordon Growth approximation] Brand Value = Branded Earnings x Brand Multiple
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
brand_earnings
|
float
|
After-tax operating profit attributable to the brand. |
required |
role_of_brand_index
|
float
|
Proportion of purchase decision driven by brand (0-1). |
required |
brand_strength_score
|
float
|
Brand strength score from 0-100. |
required |
discount_rate
|
float
|
Brand-specific discount rate (decimal). |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Dict with value, method, formula_reference, steps, and assumptions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If any input is invalid. |
Example
result = interbrand_brand_valuation( ... brand_earnings=50_000_000, ... role_of_brand_index=0.60, ... brand_strength_score=75, ... discount_rate=0.08, ... ) result["value"] > 0 True
Reference
Interbrand. "Best Global Brands Methodology." https://interbrand.com/best-brands/
Source code in src/asset_types/brand_valuation.py
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 | |
trademark_valuation(revenue: float, profit_margin: float, brand_strength_index: float, discount_rate: float, useful_life: int, method: str = 'relief_from_royalty') -> dict
¶
Calculate brand value using RFR or excess earnings method.
Brand strength index adjusts the royalty rate in the relief-from-royalty method, or the excess earnings in the excess earnings method.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
revenue
|
float
|
Annual revenue attributable to the brand. |
required |
profit_margin
|
float
|
Profit margin (decimal). |
required |
brand_strength_index
|
float
|
Brand strength index (0-1, higher = stronger). |
required |
discount_rate
|
float
|
Discount rate (decimal). |
required |
useful_life
|
int
|
Useful life in years. |
required |
method
|
str
|
Valuation method ("relief_from_royalty" or "excess_earnings"). |
'relief_from_royalty'
|
Returns:
| Type | Description |
|---|---|
dict
|
Dict with value, method, formula_reference, steps, and assumptions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If any input is invalid or method is unknown. |
Source code in src/asset_types/brand_valuation.py
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 | |
Technology Valuation¶
technology_valuation
¶
Technology asset valuation methods.
Implements valuation for developed technology, software, data assets, and platforms with network effects.
Classes¶
AlgorithmValuationInputs
¶
Bases: BaseModel
Inputs for ML algorithm valuation.
ApiValuationInputs
¶
Bases: BaseModel
Inputs for API valuation.
DataAssetInputs
¶
Bases: BaseModel
Inputs for data asset valuation.
DevelopedTechnologyInputs
¶
Bases: BaseModel
Inputs for developed technology valuation.
PlatformInputs
¶
Bases: BaseModel
Inputs for platform valuation.
SoftwareInputs
¶
Bases: BaseModel
Inputs for software valuation.
TechObsolescenceInputs
¶
Bases: BaseModel
Inputs for technology obsolescence curve.
Functions¶
algorithm_valuation(computational_savings: float, deployment_scale: float, competitive_advantage_years: int, discount_rate: float) -> dict
¶
Value an ML algorithm based on computational savings and competitive advantage.
Values the algorithm by the cost savings it generates at scale, projected over the period of competitive advantage.
Formula
Annual Benefit = Computational Savings x Deployment Scale Value = sum(Annual Benefit / (1 + r)^t) for t = 1 to advantage_years
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
computational_savings
|
float
|
Annual computational cost savings from the algorithm. |
required |
deployment_scale
|
float
|
Scale factor representing breadth of deployment (>0). |
required |
competitive_advantage_years
|
int
|
Expected years of competitive advantage. |
required |
discount_rate
|
float
|
Discount rate (decimal). |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Dict with value, method, formula_reference, steps, and assumptions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If any input is invalid. |
Example
result = algorithm_valuation( ... computational_savings=500_000, ... deployment_scale=3.0, ... competitive_advantage_years=5, ... discount_rate=0.12, ... ) result["value"] > 0 True
Source code in src/asset_types/technology_valuation.py
api_valuation(api_calls_per_month: float, revenue_per_call: float, growth_rate: float, useful_life: int, discount_rate: float) -> dict
¶
Value an API as an intangible asset based on call volume and revenue.
Projects annual revenue from API usage with growth, then discounts to present value over the API's useful life.
Formula
Annual Revenue(t) = calls_per_month x 12 x revenue_per_call x (1 + g)^(t-1) Value = sum(Annual Revenue(t) / (1 + r)^t)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
api_calls_per_month
|
float
|
Current monthly API call volume. |
required |
revenue_per_call
|
float
|
Revenue generated per API call. |
required |
growth_rate
|
float
|
Annual growth rate of API usage (decimal). |
required |
useful_life
|
int
|
Expected useful life of the API (years). |
required |
discount_rate
|
float
|
Discount rate (decimal). |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Dict with value, method, formula_reference, steps, and assumptions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If any input is invalid. |
Example
result = api_valuation( ... api_calls_per_month=1_000_000, ... revenue_per_call=0.001, ... growth_rate=0.15, ... useful_life=5, ... discount_rate=0.10, ... ) result["value"] > 0 True
Source code in src/asset_types/technology_valuation.py
492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 | |
data_asset_valuation(acquisition_cost: float, quality_score: float, revenue_contribution: float, useful_life: int, discount_rate: float) -> dict
¶
Value a data asset with quality-adjusted revenue contribution.
Quality score (0-1) adjusts the revenue contribution to reflect data completeness, accuracy, and usability.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
acquisition_cost
|
float
|
Cost to acquire the data. |
required |
quality_score
|
float
|
Data quality score (0-1). |
required |
revenue_contribution
|
float
|
Annual revenue contribution. |
required |
useful_life
|
int
|
Useful life in years. |
required |
discount_rate
|
float
|
Discount rate (decimal). |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Dict with value, method, formula_reference, steps, and assumptions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If any input is invalid. |
Source code in src/asset_types/technology_valuation.py
developed_technology_valuation(rd_costs: float, life_cycle_stage: str, competitive_advantage: int, discount_rate: float, cash_flow_projections: list[float]) -> dict
¶
Value developed technology with life-cycle risk adjustment.
Combines cost approach (R&D costs as floor) with income approach, where the life cycle stage adjusts the discount rate for risk.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rd_costs
|
float
|
R&D development costs. |
required |
life_cycle_stage
|
str
|
One of "emerging", "growth", "mature", "decline". |
required |
competitive_advantage
|
int
|
Competitive advantage period in years. |
required |
discount_rate
|
float
|
Base discount rate (decimal). |
required |
cash_flow_projections
|
list[float]
|
Projected annual cash flows. |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Dict with value, method, formula_reference, steps, and assumptions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If any input is invalid. |
Source code in src/asset_types/technology_valuation.py
platform_valuation(network_size: int, network_effects_coefficient: float, revenue_per_user: float, growth_rate: float, discount_rate: float) -> dict
¶
Value a platform incorporating network effects in revenue projection.
Network effects amplify revenue as the user base grows. The coefficient determines the strength of the network effect on per-user revenue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
network_size
|
int
|
Current network size (number of users). |
required |
network_effects_coefficient
|
float
|
Network effects coefficient (0-1). |
required |
revenue_per_user
|
float
|
Base revenue per user. |
required |
growth_rate
|
float
|
Network growth rate (decimal). |
required |
discount_rate
|
float
|
Discount rate (decimal). |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Dict with value, method, formula_reference, steps, and assumptions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If any input is invalid. |
Source code in src/asset_types/technology_valuation.py
software_valuation(development_cost: float, maintenance_cost: float, user_base: int, revenue_model: dict, useful_life: int, discount_rate: float) -> dict
¶
Value software using cost and income approaches.
Combines replacement cost with PV of net cash flows from the user base.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
development_cost
|
float
|
Cost to develop the software. |
required |
maintenance_cost
|
float
|
Annual maintenance cost. |
required |
user_base
|
int
|
Current number of users. |
required |
revenue_model
|
dict
|
Dict with "type" and "revenue_per_user". |
required |
useful_life
|
int
|
Useful life in years. |
required |
discount_rate
|
float
|
Discount rate (decimal). |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Dict with value, method, formula_reference, steps, and assumptions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If any input is invalid. |
Source code in src/asset_types/technology_valuation.py
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 233 234 235 | |
technology_obsolescence_curve(initial_value: float, obsolescence_rate: float, periods: int) -> dict
¶
Calculate technology value decay over time due to obsolescence.
Models the decline in technology value as newer alternatives emerge. Uses exponential decay: V(t) = V0 x (1 - obsolescence_rate)^t
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
initial_value
|
float
|
Initial technology value at t=0. |
required |
obsolescence_rate
|
float
|
Annual rate of value decay (0-1, decimal). |
required |
periods
|
int
|
Number of periods to project. |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Dict with value (remaining value at end), method, formula_reference, |
dict
|
steps (value at each period), and assumptions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If any input is invalid. |
Example
result = technology_obsolescence_curve(1_000_000, 0.20, 5) result["value"] # ~327,680 327680.0
Source code in src/asset_types/technology_valuation.py
Customer Valuation¶
customer_valuation
¶
Customer-related asset valuation methods.
Implements valuation for customer relationships, distribution networks, and non-compete agreements.
Classes¶
BacklogValuationInputs
¶
Bases: BaseModel
Inputs for order backlog valuation.
CLVInputs
¶
Bases: BaseModel
Inputs for customer lifetime value calculation.
ChurnImpactInputs
¶
Bases: BaseModel
Inputs for churn impact analysis.
CustomerRelationshipInputs
¶
Bases: BaseModel
Inputs for customer relationship valuation.
DistributionNetworkInputs
¶
Bases: BaseModel
Inputs for distribution network valuation.
NonCompeteInputs
¶
Bases: BaseModel
Inputs for non-compete agreement valuation.
Functions¶
backlog_valuation(contract_backlog: list[dict], probability_of_completion: float, discount_rate: float) -> dict
¶
Value order backlog as risk-adjusted present value of contracted revenue.
Each contract in the backlog is discounted to present value and adjusted for the probability of successful completion.
Formula
Value = sum(contract_value x P(completion) / (1 + r)^period)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
contract_backlog
|
list[dict]
|
List of dicts with 'value' (float) and optional 'period' (int, default 1) for each contract. |
required |
probability_of_completion
|
float
|
Overall probability contracts will be fulfilled (0-1). |
required |
discount_rate
|
float
|
Discount rate (decimal). |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Dict with value, method, formula_reference, steps, and assumptions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If backlog is empty or inputs are invalid. |
Example
backlog = [ ... {"value": 500_000, "period": 1}, ... {"value": 300_000, "period": 2}, ... ] result = backlog_valuation(backlog, 0.90, 0.10) result["value"] > 0 True
Source code in src/asset_types/customer_valuation.py
360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 | |
churn_impact_analysis(current_customers: int, churn_rate_before: float, churn_rate_after: float, revenue_per_customer: float, discount_rate: float) -> dict
¶
Analyze the value impact of a change in customer churn rate.
Compares the present value of the customer base under two churn scenarios over a 5-year projection period.
Formula
Customers(t) = Initial x (1 - churn_rate)^t Revenue(t) = Customers(t) x revenue_per_customer PV = sum(Revenue(t) / (1 + r)^t) Impact = PV(before) - PV(after)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
current_customers
|
int
|
Current number of customers. |
required |
churn_rate_before
|
float
|
Annual churn rate before the change (0-1). |
required |
churn_rate_after
|
float
|
Annual churn rate after the change (0-1). |
required |
revenue_per_customer
|
float
|
Annual revenue per customer. |
required |
discount_rate
|
float
|
Discount rate (decimal). |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Dict with value (impact = PV_before - PV_after), method, |
dict
|
formula_reference, steps, and assumptions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If churn rates are >= 1 or other inputs are invalid. |
Example
result = churn_impact_analysis( ... current_customers=1000, ... churn_rate_before=0.20, ... churn_rate_after=0.15, ... revenue_per_customer=5000, ... discount_rate=0.10, ... ) result["value"] > 0 # reducing churn creates value True
Source code in src/asset_types/customer_valuation.py
449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 | |
customer_lifetime_value(revenue_per_period: float, retention_rate: float, discount_rate: float, margin: float) -> dict
¶
Calculate customer lifetime value using the infinite horizon CLV formula.
Formula
CLV = margin x revenue_per_period x retention_rate / (1 + discount_rate - retention_rate)
This is the closed-form solution for an infinite-horizon CLV with constant retention and discount rates.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
revenue_per_period
|
float
|
Revenue generated per customer per period. |
required |
retention_rate
|
float
|
Probability a customer remains active (0-1, must be < 1). |
required |
discount_rate
|
float
|
Discount rate per period (decimal). |
required |
margin
|
float
|
Profit margin on revenue (0-1, decimal). |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Dict with value (CLV per customer), method, formula_reference, steps, and assumptions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If retention_rate >= 1 or other inputs are invalid. |
Example
result = customer_lifetime_value(100, 0.80, 0.10, 0.30) result["value"] # 0.30 * 100 * 0.80 / (1 + 0.10 - 0.80) = 80.0 80.0
Reference
Gupta, S. & Lehmann, D. (2005). Managing Customers as Investments. Wharton School Publishing.
Source code in src/asset_types/customer_valuation.py
270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 | |
customer_relationship_valuation(customer_count: int, avg_revenue_per_customer: float, retention_rate: float, profit_margin: float, discount_rate: float, projection_period: int) -> dict
¶
Value customer relationships with multi-period cash flow and attrition.
Projects declining customer base over time using retention rate, calculates profit from remaining customers, and discounts to present value.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
customer_count
|
int
|
Initial number of customers. |
required |
avg_revenue_per_customer
|
float
|
Average annual revenue per customer. |
required |
retention_rate
|
float
|
Annual customer retention rate (0-1). |
required |
profit_margin
|
float
|
Profit margin (decimal). |
required |
discount_rate
|
float
|
Discount rate (decimal). |
required |
projection_period
|
int
|
Projection period in years. |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Dict with value, method, formula_reference, steps, and assumptions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If any input is invalid. |
Source code in src/asset_types/customer_valuation.py
distribution_network_valuation(channel_count: int, revenue_per_channel: float, channel_margin: float, useful_life: int, discount_rate: float) -> dict
¶
Value a distribution network based on channel profitability.
Calculates PV of expected profits from distribution channels over the network's useful life.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
channel_count
|
int
|
Number of distribution channels. |
required |
revenue_per_channel
|
float
|
Annual revenue per channel. |
required |
channel_margin
|
float
|
Profit margin per channel (decimal). |
required |
useful_life
|
int
|
Useful life in years. |
required |
discount_rate
|
float
|
Discount rate (decimal). |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Dict with value, method, formula_reference, steps, and assumptions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If any input is invalid. |
Source code in src/asset_types/customer_valuation.py
non_compete_valuation(protected_revenue: float, profit_margin: float, term: int, enforcement_probability: float, discount_rate: float) -> dict
¶
Value a non-compete agreement based on protected profits.
Values the expected profit stream protected by the non-compete, adjusted for the probability of successful enforcement.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
protected_revenue
|
float
|
Annual revenue protected by the agreement. |
required |
profit_margin
|
float
|
Profit margin on protected revenue (decimal). |
required |
term
|
int
|
Agreement term in years. |
required |
enforcement_probability
|
float
|
Probability of enforcement (0-1). |
required |
discount_rate
|
float
|
Discount rate (decimal). |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Dict with value, method, formula_reference, steps, and assumptions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If any input is invalid. |
Source code in src/asset_types/customer_valuation.py
Human Capital¶
human_capital
¶
Human capital valuation methods.
Implements valuation for assembled workforce and key person dependencies.
Classes¶
AssembledWorkforceInputs
¶
Bases: BaseModel
Inputs for assembled workforce valuation.
KeyPersonInputs
¶
Bases: BaseModel
Inputs for key person valuation.
Functions¶
assembled_workforce_valuation(employee_count: int, avg_replacement_cost: float, training_cost: float, productivity_factor: float, attrition_rate: float) -> dict
¶
Value an assembled workforce using replacement cost approach.
The value reflects the cost savings from having a trained, productive workforce versus hiring and training new employees. Accounts for attrition over a standard ramp-up period.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
employee_count
|
int
|
Number of employees. |
required |
avg_replacement_cost
|
float
|
Average cost to replace one employee. |
required |
training_cost
|
float
|
Training cost per employee. |
required |
productivity_factor
|
float
|
Productivity of new hires vs assembled workforce (0-1). |
required |
attrition_rate
|
float
|
Annual attrition rate (decimal). |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Dict with value, method, formula_reference, steps, and assumptions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If any input is invalid. |
Source code in src/asset_types/human_capital.py
key_person_value(revenue_contribution: float, replacement_cost: float, departure_probability: float, discount_rate: float) -> dict
¶
Value a key person based on revenue contribution and replacement risk.
Combines the cost to replace the person with the PV of their revenue contribution, adjusted for departure probability over a standard horizon.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
revenue_contribution
|
float
|
Annual revenue attributable to the person. |
required |
replacement_cost
|
float
|
Cost to find and train a replacement. |
required |
departure_probability
|
float
|
Annual probability of departure (0-1). |
required |
discount_rate
|
float
|
Discount rate (decimal). |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Dict with value, method, formula_reference, steps, and assumptions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If any input is invalid. |