def searchForInsert(sortedList:list, value:float)->int:
    """Search for where to insert the value for the list to remain sorted

    Args:
        sortedList (list): a sorted list
        value (float): the value to insert into the sorted list

    Returns:
        int: the index where to insert the value
    """

    for i in range(len(sortedList)-1,-1,-1):
        if(sortedList[i] <= value):
            return i+1
    else:
        return 0