Whatever your preferences or calculations for your time spent in Spain and other Schengen countries, once the 90 in 180 day-period is over, you will have to spend 90 days outside of the Schengen Area. An absence for an uninterrupted period of 90 days allows for a new stay for up to 90 days.