fixed the amount calculation for 100% discount