Updated optimum food calculation