Calculating the price per unit