Most bottle paint will last a long time as long as the seal is good. I still have a few bottles of Floquil over 40 years old and usable.
I have never had a spray can fail that was unused. Once you start using that paint all bets are off. Tamiya and Testors seem to hold up pretty well. Krylon and Rustoleum, not so much. Use it or loose it.
Pete