I budget for a new cable pretty much every time I am doing work on my brakes. If I can easily reuse the old cable and there are no problems with it, then I keep the new cable for next time. But if there is anything wrong with the old cable (a kink, frayed, broken strand, rust) then it gets replaced as soon as a wrench is near my bike. $5 saves me potentially an hour or more in some circumstances.