The work done by the rubber

 

 
The work done by the rubber as it contracts is the smaller area under the lower curve.