Are you talking about this formula?

P(e) = (E1*E2/X)sin(theta1-theta2)?