First iteration on prediction window calculation