https://hn.algolia.com/?dateRange=pastYear&query=x220&type=c...
If what bothers you with your current computer is something that would be provably solved with a newer one (battery life, heavy CPU/GPU tasks...), then it's time for a replacement. I've also quickly replaced computers I hated keyboards or screens on.
Some things related to modern environment can not be helped though (no matter how fast your computer, docker-based dev envs will be slow to start up, where slow is contrasted with instantaneous).
When running a company and looking to replace computing equipment, a number of other variables come into play (due to amortising costs and such).
Never unless it eats significant amount of energy due to ancient techprocess.