Probably a couple of more years provided you can keep replacing your battery. I’m on a 13 Pro Max which has the same SoC as a 13 Mini and while I might want a battery replacement within the next year, the phone itself has no performance issues. I think the iPhone 12 model line is essentially in the same boat, just a little bit older and with worse batteries.