By subtracting dt every tick your timer decreases with 1 every second, also taking into account the framerate.
The max expression just stops the value from going below 0, so what you get is a timer that starts at r0 and decreases by 1 every second until it reaches 0.