https://peeterjoot.com/2016/02/09/average-power-for-circuit-elements/
Average power for circuit elements