analyzePeriods