Guitar Depreciation Calculator
Please enter valid values.
'; return; } const depreciationRate = 0.1; // 10% depreciation rate per year const depreciationAmount = purchasePrice * depreciationRate * years; const currentPrice = purchasePrice - depreciationAmount; document.getElementById('depreciationResult').innerHTML = `After ${years} years, the guitar's current value is $${currentPrice.toFixed(2)}
`; }