added calculation for finite solenoid coil