Keep these 4 factors in mind while planning for retirement