#B#is the magnetic field strength (Tesla). #I#is the current in the wire (Amps). #L#is the length of the wire in the magnetic field (metres). #θ#is the angle between the current direction and the magnetic field lines.
The above equation is the general equation for a straight wire in a uniform magnetic field. That will give you the magnitude of the force. In order to find the direction of the force (force is a vector and so has a direction) you will need to use Fleming's Left Hand Rule (FLHR) - see image here https://flic.kr/p/nMRv8W. Magnetic field direction is North to South, and current direction is conventional current direction (positive terminal to negative).
FLHR is based on an angle of 90º between current and magnetic field lines. If θ < 90º then take the component of B-field perpendicular to the current direction and use that as the direction of the field for FLHR.
You are very likely to come across the above equation stated like this:
That is true, but it's actually a special case of the equation for when
The most general case, if
In the case of a closed loop of wire, this integral will be a closed integral with