How do you determine the work done by the frictional force?

W = Fd