Code time inaccuracy

Dragonsired1:
Ok so I should make that same code from scratch adding more and more things and when that problem occurs find out what makes this problem...

Or, comment out sections until the problem disappears. Your code has user interface parts (beep, button handling, display) and "functional" parts. A great place to start would be to comment out the optional user interface parts (like the beep).