}   int firstDemandBucket = getFirstProjectWithdrawBucket(); if(firstDemandBucket > supplierAvailableBucket) { supplierAvailableBucket = firstDemandBucket;
    private int getInitialLevelDemandEndBucket() {      if(myPG.getSupplierArrivalTime() == -1) {        return -1;      }      else {        int supplierAvailableBucket = convertTimeToBucket(myPG.getSupplierArrivalTime(),false);	//At the top of the supply chain 191-ORDBN has a	//supplier available bucket that is 8/15 which is before its	//arrival time.  The supplier is only truly available to you	//once you arrive.	int arrivalBucket = convertTimeToBucket(arrivalTime,false);	if(supplierAvailableBucket < arrivalBucket) {	    supplierAvailableBucket = arrivalBucket;	}	//The end of the horizon lookahead to compute the initial level		int initialLevelDemandEndBucket = supplierAvailableBucket + ost + criticalLevel;        return initialLevelDemandEndBucket;      }    }