Starting from the simple case, there is a single wave ##e=a\cos(2\pi ft+\frac{2\pi}{\lambda}x+\phi_0)##, and integrate in such a way, where ##T_{eye}## stands for the response time of human eyes' response time towards energy change:
$$I=\int_{0}^{T_{eye}}e^2dt$$
The calculation includes...