How to perform calculation inside of the form?