Cables last a very long time. I generally don't change them much unless I happen to damage the inner cable (the pinch bolt on the derailer will cut them if you make and break the connection too much) or the housing is cracked due to weather checking.
I'd estimate that my cables and cable housing last 3 to 5+ years.