GIỎ HÀNG
- Không có sản phẩm trong giỏ hàng
Tổng Tiền:
0VND
Định lượng chính xác số tiền tiết kiệm hàng tháng, số giờ làm việc được giải phóng và thời gian hoàn vốn khi triển khai AI cho doanh nghiệp.
Xem ngay lộ trình chuyển đổi và cẩm nang triển khai thực chiến chuẩn EraGenAI.
document.addEventListener(‘DOMContentLoaded’, function() {
function formatMoney(n) {
return n.toLocaleString(‘vi-VN’) + ‘ đ’;
}
function calculateROI() {
var employees = parseInt(document.getElementById(‘input-employees’).value);
var salary = parseInt(document.getElementById(‘input-salary’).value);
var hours = parseFloat(document.getElementById(‘input-hours’).value);
var cost = parseInt(document.getElementById(‘input-cost’).value);
document.getElementById(‘lbl-employees’).innerText = employees + ‘ người’;
document.getElementById(‘lbl-salary’).innerText = formatMoney(salary);
document.getElementById(‘lbl-hours’).innerText = hours + ‘ giờ’;
document.getElementById(‘lbl-cost’).innerText = formatMoney(cost);
var hourlyRate = salary / (22 * 8);
var totalHoursSaved = employees * hours * 22;
var monthlyValue = totalHoursSaved * hourlyRate;
var netGain = monthlyValue – cost;
var roi = cost > 0 ? (netGain / cost) * 100 : 0;
var paybackDays = monthlyValue > 0 ? Math.round((cost / (monthlyValue / 22))) : 0;
var multiplier = cost > 0 ? (monthlyValue / cost).toFixed(1) : 0;
document.getElementById(‘res-monthly-value’).innerText = formatMoney(Math.round(monthlyValue));
document.getElementById(‘res-hours-saved’).innerText = Math.round(totalHoursSaved) + ‘ giờ’;
document.getElementById(‘res-roi’).innerText = (roi > 0 ? ‘+’ : ”) + Math.round(roi) + ‘%’;
document.getElementById(‘res-payback’).innerText = paybackDays <= 0 ? 'Tức thì' : '~ ' + paybackDays + ' ngày';
document.getElementById('res-multiplier').innerText = multiplier + ' lần';
}
['input-employees', 'input-salary', 'input-hours', 'input-cost'].forEach(function(id) {
var el = document.getElementById(id);
if (el) {
el.addEventListener('input', calculateROI);
}
});
calculateROI();
});