You probably made a mistake with the calculation of the period.

The amplitude of this graph and is .

However, this graph has 4 cycles in the interval , so a period of . But has a period of .