You declare a field to be editable using the InputField script statement. And then use the field in an expression with InputSum() or InputAvg() function. You can also use the field in a TableBox where it is editable as a Dimension.
See the attached QVW for an example. When you hover over the Premium field in the table, click the arrow to edit the value. Right-Clicking the field offers some additional options.