fixed my errors on calculation button