Calculating the final cost after a discount.