Clock Timer not converting to minutes correctly

Put the code aside for a bit and explain what you want to do In plain English

If the rotary encoder value has changed then …

See if it works on a few manual examples, then write code that does this.


Alternatively
Hint for a change: it’s easier to work in seconds and calculate the minutes and seconds when needed