How long will the world's supplies of oil last?

Some estimates put this at 40 years, but it depends on how much more can be discovered and on being able to use sources such as tar sands.