Benefit Calculation Engine
Component Detail
Service Layer
medium complexity
mobile
1
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Pure client-side computation library in Dart that applies cached organization benefit rates to user-provided inputs and returns itemized advantage estimates. Contains no I/O or network calls, making it trivially testable and offline-safe. Encapsulates all business logic for credit accrual, mileage reimbursement calculation, and certification value scoring.
benefit-calculation-engine
Responsibilities
- Compute mileage reimbursement from distance inputs and cached rate
- Estimate course credit accrual from activity hours and type weights
- Calculate certification and professional development value
- Return structured itemized AdvantageEstimate result object
Interfaces
calculate(CalculatorInput input, BenefitConfig config) → AdvantageEstimate
getItemizedBreakdown(AdvantageEstimate estimate) → List<BenefitLineItem>
validateInput(CalculatorInput input) → ValidationResult