Calculations not behaving correctly on my form