State tax filing

I am having a similar problem with my PA-40 tax form. The calculations are not working correctly.