I can't get form to calculate properly