Rather than a fixed interval, watch the indicators: rising callback frequency, difficulty sourcing spare parts, growing energy costs, passenger complaints about waiting or ride quality, and questions raised at inspection. When two or three of those are present together, modernisation is usually already the cheaper option.