Measuring and eliminating energy waste