Back when smartphones had easily replaceable batteries, like the LG V10 I bought for my mom, I bought her a new battery after 3 years and it gave it new life.
Now, 10 years is on a different time frame. Personally, I would gauge the price of a replacement battery against how much I paid for the laptop. 10% maybe? Completely arbitrary. $20 replacement battery for a $200 used laptop.