Planning ahead when the future is uncertain