Problem with formula field

Problem with formula field

I'm trying to make formula field, where I'd like to use variable from another formula in this form. In result there is warning message, that "variable is not declared".
Have you any thougts to solve this?

Janis

Sorry, for my english...