Can someone explain the results i am getting subtracting 1000 from 2000 and getting 0
Are you actually getting 0? If you toggle a breakpoint at this point in the code, it will not have been executed yet and the values will read as 0. Add a print string one step later and toggle the brakpoint there, and it should return a value. Alternatively plug the result into the print string and see what you get.
If you are dividing integers, the return value would be 0.
The problem seems to have resolved itself, it works now