Text this: Using ideal time horizon for energy cost determination