calculate optimal inventory by quantiles