You probably made a mistake with the calculation of the period. The amplitude of this graph and is 2. However, this graph has half a cycle in the interval , so it has a period of . But has a period of .