Calculation of Frequency and Amplitude