def find_index_larger(times, ref_time):
    """Returns the index of times whose value is just larger than ref_time

    Args:
        times (list): A list of floats denoting a datestring in seconds
        ref_time (float): A input date in seconds

    Returns:
        int: the index which is just larger than ref_time
    """

    return next(i[0] for i in enumerate(times) if i[1] > ref_time)