Calculate the cost price