write functions to summarize daily energy use