How long can you use stored bottles?

How long can closed bottles be used after stored in cabinet? This is really stressing me out because everything says a bottles need to be washed every 24 hours wash it's driving me insane