Finish caluculate inventory without test