Amortized Cost Calculation