update_horizon function

Updates Forecast Horizon Based on Input Data and Target