Instance parameter formula

Hi all,
How can I use Dynamo to create instance parameter formula included 2 other instance parameters ?
For example I want to create parameter count the wall Base and top Constraint …

Thank you in advance

Not totally sure what you mean here, buddy. You mean actually populating a formula in a Revit family? Or more like this?