properly calcualte on_hand and backordered stock