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