get_operation
index = get_operation(curr, system_time, &next_time);
index = get_operation(prev, system_time, &next_time);