Hi,
I typed what i showed exactly and it works now. I think the reason was either the formula that used largest/smallest or using constants istead of variables, though what's the difference - i dunno.
Thanks for the tip.
Last one thing that seems unsolved is how can i make the length parameter editable for the user (eg. if he/she wanted to type in the value) without erasing the formula ?