Error with calculation for minimum lunch sorted