if len(time) > 0:
            has_data = True
            max_row = start_detail_data_row_num + len(time)