Calculating the sale price