Oil in a sealed container that doesn't let in light nor air should last almost indefinitely. Once you've opened a container, the oil in it can start oxidizing (slowly), not so if it's synthetic though. It'll probably last indefinitely even in an opened container.
Ralph