Work is equal to the integral of force times velocity times displacement times time.

An integral, if the force isn't constant.