Fixed analytics quarter calculation.