Rule of thumb: how far before changing my chain to prevent cassette wear
Distance depends on how you look after the bike and what your local conditions are. Buy a chain wear gauge (plenty of other brands available) and replace the chain when it's stretched by 0.5%.