<script>
function calculateROI() {
const count = document.getElementById('forklift-count').value;
const life = document.getElementById('lead-acid-life').value;
const savings = document.getElementById('monthly-savings').value;
// 5³â°£ ³³Ãà ¹èÅ͸® ±³Ã¼ ºñ¿ë (´ë´ç ¾à 300¸¸¿ø °¡Á¤)
const replacementCount = Math.floor(60 / life);
const totalReplacementCost = count * replacementCount * 3000000;
// 5³â°£ À¯Áöºñ Àý°¨¾×
const totalMonthlySavings = count * savings * 60;
const totalProfit = totalReplacementCost + totalMonthlySavings;
document.getElementById('result').style.display = 'block';
document.getElementById('total-profit').innerText = "¾à " + (totalProfit / 10000).toLocaleString() + " ¸¸¿ø";
}
</script>