reorderPeriodEndBucket); targetLevel = criticalAtEndOfPeriod + demandForPeriod;
reorderPeriodEndBucket-1); targetLevel = criticalAtEndOfPeriod + demandForPeriod + .0005;
  private double getTargetLevel(int refillBucket,                                 int reorderPeriodEndBucket,                                 LogisticsInventoryPG thePG) {    double targetLevel = 0;    //    double criticalAtEndOfPeriod = Math.max(.9, thePG.getCriticalLevel(reorderPeriodEndBucket));    double criticalAtEndOfPeriod = thePG.getCriticalLevel(reorderPeriodEndBucket);    double demandForPeriod = calculateDemandForPeriod(thePG,                                                       refillBucket,                                                       reorderPeriodEndBucket);    targetLevel = criticalAtEndOfPeriod + demandForPeriod;    return targetLevel;  }