calculating the totalprice for an order upon creation; in progress