fixed calculation bug

had to reset the global percentage so that tip percentage wouldn't
continously add every time the app was used