feat(marketing): pricing 3 forfaits + ROI calculator Alpine.js

This commit is contained in:
Allison
2026-04-27 18:50:33 -04:00
parent b87f35ea4a
commit 0ae4053faa
5 changed files with 270 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
// 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 $
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 999;
return Math.max(1, Math.round((annualCost / this.savings) * 12));
}
};
}
window.roiCalculator = roiCalculator;