You can read the contents of form objects and perform calculations on them using the ribbon command Insert | group Text | Field | Calculation. For example, the formula "Textbox1.Value * 2" reads the numeric value in the text field named "Textbox1" and multiplies it by two.
For more information, see Objects in calculations.