The temperature and humidity present where they are stored matters, too. The truth depends on the circumstances. It’s not just a matter of age, or miles, it’s a matter of relative, humidity, of how well the engine is sealed, and how much moisture gets inside it. Clean, dry, climate controlled. Years.
Humid, big temperature swings - annually.
When the temperature changes a lot, the relative humidity in the air changes a lot. Causes condensation. Those big temperature swings move air in and out of the engine, couple air, moving in and out with condensation, and you’ll want to get rid of the oil sooner.
But if the car is in a climate controlled facility where the temperature doesn’t change much, and the relative humidity is low, and the oil is good for many years