A practical approach to measuring the impacts of stockouts on demand