The holder of a D7 residence permit, to be able to renew it, should stay in Portugal for 6 consecutive months or 8 non-consecutive months.