Hi,
When you compress a spring and release it (allowing object to spring some distance), to compute the work done by friction, your s term in W=Fs would have to equal the distance that the spring is compressed + the additional distance traveled by the object once it leaves the spring, right...