Planetary Evolution and the Fate of Planetary Habitability