// ROI calculator for DictIA pricing section.
// Hypotheses transparentes (cf. footnote dans landing.html) :
//   - 80% du temps de transcription manuelle est économisé
//   - 220 jours ouvrables/an
//   - Coût annuel comparé = DictIA 16 = 5 750 $ + (201 $ × 12) = 8 162 $
window.roiCalculator = function roiCalculator() {
  return {
    users: 5,
    hours: 2,
    rate: 200,
    get savings() {
      const hoursSaved = this.users * this.hours * 0.8 * 220;
      return Math.round(hoursSaved * this.rate);
    },
    get payback() {
      const annualCost = 5750 + (201 * 12);
      if (this.savings <= 0) return null;
      return (annualCost / this.savings) * 12;
    }
  };
};
