magnitude of error formula