It is not the first time I see questions on forums about how to calculate a formula that is stored in a string.
Here is a Forms sample that demonstrates how to achieve this task.
The formula (3rd line in this sample) can contains real values as well as pointers to Forms items.