How long will the worlds oil last?

Some predictions are for 40 years, but this ignores more difficult deposits like tar sands and oil shale, which will become more important as the supplies of liquid oil are depleted.