Calculate Surface Wave Magnitude