I am trying to use a progress dialog to show how long until 2 time intensive functions are done.
in my first function I have the total number to db entries and a counter
You should either cast, or use the double type for counter and entries. I assume you're using ints currently, and as ints go, 3/36=0, and of course 0*100 is still 0.
counter
entries