Calculating only the values of visible form fields