Electrical Distance Formula