what is the formula for work?

Force times distance moved in direcion of force

in other words
W = F dot X