// ROI calculator for DictIA pricing section (v7.0).
// Hypotheses transparentes (cf. footnote dans landing.html) :
//   - 80% du temps de transcription manuelle est économisé
//   - 220 jours ouvrables/an
//   - Coût annuel comparé = Cloud ESSENTIEL = 349 $ × 12 = 4 188 $
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() {
      // Cloud ESSENTIEL annual cost (no setup fee)
      const annualCost = 349 * 12;
      if (this.savings <= 0) return null;
      return (annualCost / this.savings) * 12;
    }
  };
};
