Water just around 3 days and food just around 2 weeks but give them food.
It depends, generally, about 3 days, but there are some food rich in water, so it might be longer if they live on it.