I seriously think you have the rules incorrect.
What? basis are you now in Peru?
Do you have the Carnet de Extranjeria?
The provision is that YOU CANNOT BE OUT OF PERU FOR MORE THAN [approximately] SIX MONTHS A YEAR.
NOT the reverse where you say that YOU MUST LEAVE 6 MONTHS A YEAR.
The Carnet grants you full legal permanent residency 100% of year after year after year