How often should a high quality mattress be replaced?

I’m interested in your personal experience, not an answer from a sales person. Our mattress is in what I believe to be good condition without any problems, but am wondering what the “life” is of an average mattress. And, any thoughts on the box spring would be helpful too. Many thanks!