issue in food calculation