Bank Account Project

I am designing a bank account for a final project and I am having some troubles with my math and thought maybe someone out there could help me out. I want it to update the balance and previous balance every time the user clicks the calculate button. As of right now it will only calculate one time. Here is my code (sorry it is a little long).