I assume it’s not as simple as counting 5 years from the issue date of your Título de Residência that you enter (honestly, obviously) on the IRN’s Modelo 6.1 application form?
Presumably the online platform that lawyers use to file Nationality applications checks that date??