BMW X7 Depreciation Calculator
Please enter valid purchase price and number of years.
'; return; } const depreciationRate = 0.15; // Example depreciation rate (15% annually) const depreciationAmount = purchasePrice * depreciationRate * years; const currentValue = purchasePrice - depreciationAmount; document.getElementById('depreciationResult').innerHTML = `After ${years} years, the BMW X7 would be worth approximately $${currentValue.toFixed(2)}.
`; }