There isn't really a definitive answer to 'how often'. A lot of the 'replacement' timing foe chains & cassettes depends much on - how hard you ride your chain; i.e., do you shove high gears or are you a spinner - ? How dirty & how quickly does the drive train get mucky, thus how often do you properly clean & lube said drive train - ? Etc., etc.. Using a chain stretch guide can be useful and occasional inspection of the state of the teeth of the most used cogs on the cassette.