Calculate Richter Scale Magnitude