How can I add a calculation to my form that is based on multiple parameters?