B. Formulas for the solenoid force and current