Calculate Period Of Sine Function