I used to start a stopwatch when I'd get a new phone so I could see exactly how long I had it. Can't say I ever tried to move them to a new device though
Stupid, but I'd just lap it. Would give me the difference and worked well enough for the rare occasion I actually needed a stopwatch.
Also the Google sign in trick only works if you're signed into Google. I used to put lineage on my old phones and now GrapheneOS. I stopped doing the stopwatch thing long ago however.