def getEnd(timefile, end_ind):
    """
    Parameter
    ----------
    timefile : array-like 1d
        the timefile.
    end_ind : integer
        the end index.
    
    Returns
    -------
    the end of the condition.
    
    """
    return timefile['ConditionTime'][end_ind]