def next_biggest(target, in_list):
    """
    Returns the next highest number in the in_list.
    If target is greater the the last number in in_list, will return the last
    item in the list.
    """
    next_highest = None
    for item in in_list:
        if item > target:
            next_highest = item
            break

    if next_highest is None:
        next_highest = in_list[-1]
    return next_highest