def make_time_series(period, time_range, data):
    """
    Create a time series with periodic intervals

    Args:
        period(int): sampling period
        time_range(list): time range
        data(list): data series

    Returns:
        list: time series
    """
    cur_time = data[0][0]
    time_series = []

    while cur_time < time_range[1]:
        time_series.append(cur_time)
        cur_time += period
        if cur_time > data[-1][0]:
            break

    return time_series