Richter Magnitude Formula