> ## 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 17: Creating a CookingTime element

> Detect the cooking time digits with a CookingTime Character String element constrained to sit left of and level with the CookingTimeHeader element.

To create the CookingTime element:

1. Create an element of type [Character String](/flexi-capture/fls/template/character-chain) and name it **CookingTime**.
2. Click the Character String tab.
3. Set the required alphabet. Judging by the test images, the alphabet includes only digits.
4. Set the Percentage of alphabet characters to 1.
5. Clear the Allow embedded hypotheses box.
6. Set the Percentage of non-alphabet characters to 10%.
7. In the Character count field, specify this fuzzy range `{0, 1, 3, 4}`. This interval is an estimate of the length of the character string. Assume that the string may be 1 to 3 characters long. Any hypotheses outside this range will be penalized.
8. Click the Relations tab.
9. On the Relations tab, specify that the number indicating the cooking time is always located to the left of the units of time, and that the distance between the digits and the time units cannot exceed 100 dots (that is, Left of the **CookingTimeHeader** element, Offset = 0 and Right of the left boundary of the **CookingTimeHeader** element, Offset = –100, Reference boundary = left).
10. Since the cooking time is always written on the same level as the units of time, add the following search constraints:

* Above the **CookingTimeHeader** element, Offset = -20, Reference boundary = bottom
* Below the **CookingTimeHeader** element, Offset = -20, Reference boundary = top
