ImpactCalculatorLogic
Component Detail
Service Layer
medium complexity
frontend
0
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Pure client-side service that encapsulates all calculation logic for the Impact Calculator. It takes structured user inputs and returns projected time savings and administrative efficiency metrics. Contains no side effects and no network dependencies.
impact-calculator-logic
Sources & reasoning
Line 220 explicitly lists the impact calculator as a core Sales Website capability. The blueprint marks it [MVP]. The MVP Sales Website scope (lines 335-338) covers the landing page and benefits presentation, and the calculator is the interactive embodiment of that benefits pitch, making it launch-critical.
-
docs/source/likeperson.md · line 220Benefit / impact calculator (static calculation, no login)
-
docs/source/likeperson.md · line 335-338Statisk landingsside med produktbeskrivelse og fordeler - Enkelt demo-booking-skjema (sender til e-post/webhook, ingen pålogging) - Privacy policy og vilkår
Responsibilities
- Compute total projected time saved per week based on mentor count, activities, and reporting time
- Calculate administrative efficiency gain as a percentage or absolute figure
- Validate that input values are within acceptable numeric ranges before computing
- Expose a clean, testable API consumed by the UI component
Interfaces
calculate(inputs: CalculatorInputs): ImpactResults
validateInputs(inputs: CalculatorInputs): ValidationResult
formatResults(results: ImpactResults): FormattedResults