A 3D computer code for steady-state magnetic field calculations in air