Calculating the purchase price