This is often talked about in the case of Air Force One (which is supposed to be able to keep flying in case of a nuclear war, so that the president can survive and order the military). The limiting factor is probably engine oil, e.g. this article suggests 2-3 days. https://executiveflyers.com/how-long-can-air-force-one-stay-...