Work is calculated as the force applied to an object multiplied by the distance it moves in the direction of that force.
Formula
W = F × d