Torque on a current carrying coil is given by:

ILBcos?

ILBsin?

IBAsin?

IBAcos?