//starting from the first date, loop through the dates until we get to the last
//possible expiration date of the food item: the items shelf life+the current date.
//While we're still working before that date, and while our quantity to be removed
//is >0, continue looping and removing, as described below:
while((temp.compareTo(food.getExpirationDate(effective))<=0)&&quantity>0)
{
//If the inventory has enough of the requested fooditem, then
//remove it, and make our removing quantity zero--then the loop
//is exited.
if((foodmap.get(warehouse)).getQuantity(food, temp)>=quantity)