Richter Scale Formula Mathematics