Calculation inside of the form