The Flag horizon to forecast zone identifies the number of horizons the user wants to forecast from the values of the [to_forecast_data](dataset:to_forecast_data) dataset. 

![Screenshot 2023-01-12 at 14.40.46.png](1aoHtb1Yss6R)

The first recipe, [compute_to_forecast_data_windows](recipe:compute_to_forecast_data_windows), is a window recipe that assigns a dense rank to each line ordered by date. 

The second recipe, [compute_to_forecast_data_flag_horizons](recipe:compute_to_forecast_data_flag_horizons), transforms the dense rank column into the horizon column that identifies the horizon number of each line. 