refactoring, created get_single_day_avg_t method