Some calculations for electrical engineering