After losing the food to the sharks Cody states that a human can survive a week without food. While he correctly also states that water is more important, a human can in fact survive up to 40 days without food, it is water that human can only survive 1 week without. Given that he is good student with good grades he should know this.