Its the torque acting on a parallelogram...
there are two ways to do it right, one is Force acting on the sides times the perpendicular distance
To be on the same page, lets consider a Parallelogram with side x,y carrying current I
theres a magnetic field along b