electrical formulae