Calculating Energy Stored and Work Done