def find_min_max_indexes(dates):
    """
    Get the index of the min value and the max value (centroids are not considered)
    Args:
        [ndarray int] dates: dates matrix

    Returns:
        [float] index_min: index of the min value
        [int] index_max: index of the max value
    """
    min = dates[0]
    index_min = 0
    max = dates[0]
    index_max = 0

    for i in range(0, dates.shape[0]):
        if dates[i] < min and dates[i] != -1:
            min = dates[i]
            index_min = i
        if dates[i] > max and dates[i] != -1:
            max = dates[i]
            index_max = i

    return index_min, index_max