Ms Formula
Ms = log A20 + 1.66 log D + 2.0 where A20 is amplitude of 20s period surface waves in micrometers and where D is distance in degrees.
Reference: Lay and Wallace, Modern Global Seismology, Academic Press, 1995, p. 382.