Work done in raising a box on a platform depends on the height to which it is raised. When a body is raised to a height then work done is equal to the potential energy.
Given W= work done
and mass = m
and vertical height= H
and gravitational force= g
W= mgh