The work done by the rope on the box is equal to:

where F is the force applied by the rope, d the distance covered by the box and

is the angle between the direction of the force and of the displacement.
Using the data of the problem:

,

and

, we find the work:
