A residence permit is issued within a 30-day period. To renew a residence permit, you should also apply 30 days before the expiration of the previous one.