You need to divide by 60.0 with just 60 the result is an integer divide.I would also change 100 to 100.0