Mileage alone is not a reliable answer because riding conditions and cleaning habits change the rate of wear.
Check sooner if you
- ride through winter grit
- ride in the rain often
- put down high torque on mixed surfaces
- wait a long time between drivetrain cleaning
The goal
Catch wear early enough that a simple chain replacement does not become a cassette replacement too.