In Andy Weir’s novel The Martian, Mark Watney grows potatoes because his supplies cannot last until rescue.
That creates two food budgets. His stored meals must cover the days until harvest. Then the crop must help cover the remaining wait for rescue.
Even a crop large enough to feed him eventually could arrive too late. The harvest date matters as much as the amount he can grow.