Service Layer high complexity mobile
2
Dependencies
1
Dependents
4
Entities
0
Integrations

Description

Core client-side calculation engine that fetches the peer mentor's activity and reimbursement history from the REST API and applies organization-configured valuation formulas to produce quantified benefit estimates. Runs entirely on the mobile client after fetching raw data to ensure responsiveness. Falls back to projected typical activity values for new peer mentors with no history.

Feature: Peer Mentor Advantage Calculator

advantage-calculation-service

Responsibilities

  • Fetch peer mentor activity and reimbursement history via REST API
  • Apply organization-specific benefit valuation formulas to raw data
  • Calculate aggregate benefit values per category (training, networking, financial, etc.)
  • Generate projected values for peer mentors with insufficient history
  • Return structured benefit breakdown for UI rendering

Interfaces

calculateAdvantages(String userId)
applyValuationFormulas(ActivityHistory history, BenefitConfig config)
generateProjectedValues()
getBenefitBreakdown()
getTotalEstimatedValue()
refreshCalculation()
isEligibleForProjection(ActivityHistory history)

Relationships

Dependencies (2)

Components this component depends on

Dependents (1)

Components that depend on this component