Generally, 10-20 years and 100K-200K miles. The US requires a warranty of 8 years and 100K miles.
For newer cars it's hard to tell for sure since the tech has improved significantly in recent years. But even the earlier cars have done better than people expected.
A quick google turns up lots of sources you can read. Here are a few: