feat(marketing): pricing 3 forfaits + ROI calculator Alpine.js
This commit is contained in:
22
static/js/roi_calculator.js
Normal file
22
static/js/roi_calculator.js
Normal 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;
|
||||
Reference in New Issue
Block a user