Since the conduction electrons are moving the force on the wire is dF=madl(-ev×B) where nadl is the number of electrons in this piece of wire The current in the wire is I=-naev, So dF= Id x e=ldl×B where dl is in the direction of the current If it's straight length l in a uniform of b the en F=n1×B