The article examines application for permanent residence and calculation of the duration of previous stay on the territory.