How do you create an LBV with calculations?

Trying to create a simple LBV form, such as one with simple addition- PHQ9. What instructions have to be given in the programming to allow for that?

Thanks