if (level_[i] > capacity) {
if (java.lang.Math.floor(level_[i] - capacity)>1.0) {
    public Integer getFirstOverflow(int i, ClusterIdentifier cluster) {	if (level_ == null)	    determineInventoryLevels();	int size = level_.length;	double capacity = getDouble(myPG_.getCapacity());	Integer day = null;	if ((i > size) || (i < 0))	    return null;	for (; i < size; i++) {//  	    GLMDebug.DEBUG("InventoryBG()", cluster, "getFirstOverflow(), checking for overflow on "+//  			   (TimeUtils.dateString(TimeUtils.addNDays(getStartTime(), i)))+" Level: "+level_[i]+" capacity: "+capacity);	    if (level_[i] > capacity) {		day = new Integer(i);		GLMDebug.DEBUG("InventoryBG()", cluster, "getFirstOverflow(), OVERFLOW on "+			       (TimeUtils.dateString(TimeUtils.addNDays(getStartTime(), i))));		break;	    }	}	return day;    }