Get your taxes done using TurboTax

yes general lifespan for Apple H/W based on the OS support seems to be about 7-8 years.  when you get to the point of replacement, check out Mac mini as an option rather than another iMac.  I got an M4 last year to replace a 2015 iMac that got stuck on Mac OS 11, using dual Dell monitors, works great and cheaper solution.