Finding Period And Amplitude