Calculator Logic Service
Component Detail
Service Layer
low complexity
frontend
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Pure utility module encapsulating all ROI calculation logic for the Impact Calculator. Accepts organizational parameters and returns projected annual hours saved, estimated cost savings in NOK, and a qualitative readiness score. Stateless and side-effect-free to enable full unit test coverage.
calculator-logic-service
Responsibilities
- Calculate projected annual hours saved from reporting automation given headcount and activity volume
- Compute estimated NOK cost savings based on hours saved and provided hourly cost
- Derive a qualitative organizational readiness score from the input parameters
- Validate and clamp input values to safe numeric ranges
Interfaces
calculate(params: CalculatorParams): CalculatorResult
validateParams(params: CalculatorParams): ValidationResult
computeHoursSaved(mentors: number, activitiesPerMonth: number, hoursPerMonth: number): number
computeCostSavings(hoursSaved: number, hourlyCost: number): number
computeReadinessScore(params: CalculatorParams): ReadinessScore