Electromagnetic coil winding calculator