calculating the price on simple buy order entry