@bloor I change when there is no longer security support, which unfortunately is more frequently than I would like from an environmental perspective. Tends to work out as about every 3-5 years. Same is true for tablets.
I have once extended a phone's life with a new battery which made a massive difference (Fairphone make it easy and cheap to do this).