How long does boat oil last in can?

We found boat oil still in the can how long does it stay good before it goes bad