Foreigners and apatrids are permitted to stay in Ukraine for 90 days (during 180 day period). As soon as this term expire they should leave the territory of Ukraine.
— obtainin of Temporary residence permit allows to stay in Ukraine for 1 year (to be extended if needed). Obtaining Permanent residence permit removes any limitations on stay in Ukraine