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