How to show calculations in a text field?