The magnetic force is defined as the cross product of the charge's velocity (
v) with the magnetic field (
B) and multiplied by it's amount of charge (q).
I.e.
F = q (
v x
B)
Now a cross product is a vector constructed that is perpendicular to both other vectors (why specialist maths teaches dot products and not cross products is beyond me).
Now for theta. Let's say the particle's velocity is at an angle θ away from the field lines. If θ = 0 there is no force on the particle, but if θ=

the force is at maximum. So we need to do a vector projection where the component parallel to the field is vcos(θ) (I.e. This component has no force acting on it) and the component perpendicular to the field is vsin(θ) (I.e. The component that feels the force).
So:
|
F| = q|
v||
B|sin(θ)
Now to get the formula you have let's say we have a wire of length L and defined v as:
|
v| =

And there is a current i flowing through the wire defined as:
i =

So now we can say
iL = q|
v| (I'll leave it to you to do the manipulations to show yourself this is true).
So the formula:
|
F| = iL|
B|sin(θ)
Should come out easily and make sense.
Anyway I hope this helps.