It depends on how much you play your instrument and how well you maintain the strings. For instance, aluminum-wound strings are susceptible to sweat, so they wear out quickly if you don’t clean them after every practice/playing session. In any case, you should consider replacing your strings if they start to lose resonance or become more challenging to play, especially when you’re playing a piece with vibrato.