Thanks lucky.andrei for the formula, will have to study yours for a bit to understand the logic

Manage to get (prev/next +/- 1) working for Hr & Min, with following:

Previous hour works using $(#Db#-1)=0?12:(#Db#-1)$

Next hour works using $(#Db#+1)=13?1:(#Db#+1)$

Previous minute work using $(#Dm#-1)=-1?59:(#Dm#-1)$

Next minute works using $(#Dm#+1)=60?0:(#Dm#+1)$

Now have to figure out: (pre/next +/-2) and (pre/next +/-3)

Special scenario:

(minute = 58,59,00,01)

(second = 58,59,00,01,02)

Can I use boolean for (#Dm#-2) as it has 2 condition: if -2 (want 58) and if -1 (want 59)

(#Ds#-3) can have -3, -2, and -1

Once I figure the previous 3 sec, the next 3 sec is similar concept