# Magnetic Force on segment of wire

A segment of wire carries a current of 30 A along the x-axis from x=-6m to x=0 and then along the z axis from z=0 to z=5.5m. In this region of space, the magnetic field is equal to 14mT in the positive z direction. What is the magnitude F of the force on the segment of wire? Answer in units of N.

I'm not sure what formula to use, can anyone help?

$$F = i\vec{l} \times \vec{B}$$