Factors affecting strength of a magnetic field