modified the discount amount calculation
test