update item calculation