fixed some utils and update_stock
tweaked calculation method for price