> ## 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: Creating 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.

To create the CookingTimeHeader element:

1. Create an element of type Static Text and name it **CookingTimeHeader**.
2. Click the Static Text tab.
3. In the Search text field, type the text to search for: **minutes|hour|hours**.
4. Set Max error percentage to 10.
5. Click the Advanced tab.
6. The field which contains the cooking time is located below all the other objects on the image. This means that you can 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) this must be written as follows:\
   `NearestY: PageRect.Bottom;`

   <Tip>
     The same constraint can also be specified via the program’s graphical user interface. Click the Relations tab, select Nearest, and in the To drop-down list select Page bottom edge.
   </Tip>
