> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sample 2. Step 16: Create a CookingTimeHeader element

> Find time units on recipe images with a CookingTimeHeader Static Text element and a NearestY constraint that targets the bottom edge of the page.

The **CookingTimeHeader** element locates the time units in the **Cooking Time** field.

<Steps>
  <Step title="Create the Static Text element">
    Create a **Static Text** element and name it **CookingTimeHeader**.
  </Step>

  <Step title="Open the Static Text tab">
    Click the **Static Text** tab.
  </Step>

  <Step title="Set the search text">
    In the **Search text** field, type the text to search for: `minutes|hour|hours`.
  </Step>

  <Step title="Set the maximum error percentage">
    Set **Max error percentage** to 10.
  </Step>

  <Step title="Open the Advanced tab">
    Click the **Advanced** tab.
  </Step>

  <Step title="Set the search constraint">
    The field that contains the cooking time is located below all the other objects on the image. Set an [additional search constraint](/flexi-capture/fls/template/advanced-constraints) in the **Advanced pre-search relations** field: search for the object closest to the bottom of the page. In the [FlexiLayout language](/flexi-capture/fls/code/general-code), write it as follows:

    ```text theme={null}
    NearestY: PageRect.Bottom;
    ```

    <Tip>
      You can also specify this constraint via the graphical user interface. Click the **Relations** tab, select **Nearest**, and in the **To** drop-down list select **Page bottom edge**.
    </Tip>
  </Step>
</Steps>
