Cost Scaling Service
Component Detail
Service Layer
low complexity
frontend
1
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Pure function utility that takes a base cost configuration and an organization size value and returns scaled manual-cost estimates. Applies per-head or per-activity multipliers defined in the cost configuration to produce realistic cost comparisons for organizations of different sizes. Called by the Cost Comparison Widget when Impact Calculator org size input is available.
cost-scaling-service
Responsibilities
- Scale manual-process cost line items by organization size using configured multipliers
- Clamp scaling within defined min/max bounds to prevent unrealistic projections
- Return both raw scaled values and formatted display strings
Interfaces
scaleCosts(config: CostComparisonConfig, orgSize: number): ScaledCostRow[]
formatCurrency(amount: number, locale?: string): string