Nonlinear Dynamics, Magnitude-Period Formula and Forecasts on Earthquake