If you consider that the new car in Poland will be on the road for 10-15 years, it's still better to buy an electric car instead. They will exit coal soon, and in a few years the EV will be greener to operate.
I thought cars these days last 200k miles easy, probably 300k+ with minor repairs. At 15k miles per year, that should give at least 15 years of use, but I would hope the average was more 20+.
I agree, in some cases 15-20 years, or more, might be possible. Depends on how easy/cheap to replace all the parts are - seats will wear out, the headliner will have accumulated all kinds of stains and grease, random electronics (a modern car has ~100 microcontrollers) might fail and be hard to access, AC might be expensive to fix, maybe the battery dies and (even if the batteries are cheap by then) the mechanic charges 1k for the replacement...
At some point it's probably cheaper to buy another used 8yo EV than continuing to maintain an 18yo EV.