The Logic of Investment Planning