Subject to all requirements being fulfilled, you can obtain residency from 24 months onwards. You must, however, continue to meet requirements throughout the application process in order to retain Portuguese residency.