Calculating the Electron Diffusion Region Aspect Ratio with Magnetic Field Gradients