refillBucket, reorderPeriodEndBucket-1);
refillBucket, reorderPeriodEndBucket);
  protected double getTargetLevel(int refillBucket,                                 int reorderPeriodEndBucket,                                 LogisticsInventoryPG thePG) {    double targetLevel = 0;    //    double criticalAtEndOfPeriod = Math.max(.9, thePG.getCriticalLevel(reorderPeriodEndBucket));    double criticalAtEndOfPeriod = thePG.getCriticalLevel(reorderPeriodEndBucket);    // OLD METHOD -- generates bad refill for Fresh Fruit, which shows up the Inventory Plotting bug!//     double demandForPeriod = calculateDemandForPeriod(thePG, //                                                       refillBucket, //                                                       reorderPeriodEndBucket);//     targetLevel = criticalAtEndOfPeriod + demandForPeriod;    double demandForPeriod = calculateDemandForPeriod(thePG,                                                       refillBucket,                                                       reorderPeriodEndBucket-1);    targetLevel = criticalAtEndOfPeriod + demandForPeriod + .0005;    return targetLevel;  }