I have a “calculate” button. When I click this button, I want it to calculate some math operations. When I press it once, it may not give the correct answer, but when I click the button 3-4 times, I get the correct answer. I want to get the answer at the first click. What could be the cause of this problem? Thanks