Please put your code inside code blocks ([code]). @Thomas1965 is right. No need for loop(s). But what you actually need is a couple of if statements. Because if incrementing the second makes it 60 then it is obvious that you need to increment the minute(s) by 1 and reduce the second by 60. Don't forget to do the same to the hour(s) considering the fact that 60 minutes equals 1 hour.