Sorry, the established law of physics says W=I*E. So if you say that power = W * I * E, the power is squared.
The first formula is strictly for DC circuits. For AC, a Power Factor can come into account to increase the power consumed somewhat, but certainly not to square it.
Perhaps the UF and DF are factors to adjust for the bloat.
In any case, the DB in post#26 eliminates the multiplications by zero problem.