Calculate Work Done on the System