Data Pre-Processing and Representation for Energy Calculations in Net Metering Conditions