Calculate Resonance Frequency