Usually work is defined in terms of moving only _a point mass_ through some distance with some constantly applied force.

So in this case, I suggest you find the center of mass of your oil tank, and find the distance from this center of mass to the top of the tank, using this as your "d".