The paper studies a multi_period portfolio optimization problem with uncertain exit time. With the assumption that the exit time is a random variable obeying some distribution this problem of uncertain exit time is translated into a determinate horizon one. Then the classical methods can be used to solve this model. By applying the dynamic programming principle we obtain the optimal investment strategy and the analytical expression of efficient frontier. Through an example we also prove that this paper is ...