marrying kwh calculations with UI