The Mathematical Formula for Calculating Earth Resistance