Service Layer medium complexity frontend
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Pure client-side calculation module that derives present-state cost from user inputs and computes projected Meander spend for comparison. Contains no I/O and no persistence, mirroring the static widget pattern used by the Impact Calculator.

Feature: Cost Comparison

comparison-logic

Sources & reasoning

Explicitly listed as a feature of the sales-calculator area in the canonical area taxonomy (§8). Source is silent on phase placement, so per the resolution rule defaulting to the second non-mobilization phase (Core Product) - MVP Sales Website scope in §5 covers only landing page, demo form, and legal pages, so the calculator features fall to the next phase.

  • | sales-calculator | Benefit Calculator | Impact Calculator, Cost Comparison |
  • Product 4: Product Sales Website (simple static site) ... Benefit / impact calculator (static calculation, no login) ... Tech: Static site ... Public-facing, no auth, no backend dependency.

Responsibilities

  • Compute current-state annual cost from staff hours, coordinator count, and toolchain inputs
  • Compute projected Meander cost based on the same inputs and pricing assumptions
  • Return a structured comparison result including absolute and percentage delta
  • Apply input sanitisation and clamp values to sane ranges before calculation

Interfaces

calculateCurrentCost(inputs: CostInputs): number
calculateMeanderCost(inputs: CostInputs): number
buildComparison(inputs: CostInputs): ComparisonResult