Relationship between current and magnetic force