Some of the force does work. Work is the component of the force vector that is along the same direction as the displacement times the displacement. To get the actual amount, use the cosine of the angle as a multiplier:
[tex]W=F\times d \times cos( \theta)[/tex]