Consider a small element of conducting wire carrying current i in magnetic field B.
The amount of charge in a small element is given as,
dq=idt
The Lorenz force is given as,
d→F=dq(→v×→B)
d→F=idt(→v×→B)
d→F=i((→vdt)×→B)
d→F=i((→dl)×→B)
If the magnetic field is constant then,
∫d→F=i((∫→dl)×→B)
→F=i(→L×→B)
If the conductor is a straight wire and the length is l, then the magnitude of force is given as,
F=ilBsinθ
Where, the angle between the current direction in the wire and the direction of the magnetic field is θ.
The direction of the magnetic field is determined by Fleming's left hand rule.