The 180 days are calculated as a rolling period which you can count backward from your entry or exit date in the Schengen. Basically, count back 180 days and see how many of those days you've spent in the Schengen zone; if you're over 90 days, you've broken the 90/180-day rule.