Formula To Find Magnitude