Formula for 10s and 1s minutes (+1 and -1)

Good Morning all,
I have a problem for my new project.
I divided the time into individual digits. So far so good.
But now I would like the minutes to be displayed additionally for each digit plus 1 and minus 1 (future and past digit).

For the 10s minutes +1 I use this formula:(floor(#Dm#/10+1))
and for the 10s minutes -1: (floor(#Dm#/10-1))

For the 1s minutes +1 I use this formula: (#Dm#-((floor(#Dm#/10))*10-1))
and for the 1s minutes -1:(#Dm#-((floor(#Dm#/10))*10+1))

But sometimes -1 or 10 is displayed. So the formula can’t be right.
Who can help me? I would be grateful for any tip.
Thanks in advance…
Happy Father’s Day or “Herrentag”

Good morning,
for -1 min you would have to use something like ((#Dm#+9)%10) and for +1 ((#Dm#+1)%10)
for -1 ten it would be ((floor(#Dm#/10)+5)%6) and for +1 ten ((floor(#Dm#/10)+1)%6)

4 Likes

Has one of the few Germans turned up? :rofl:

1 Like

@petruuccios Thanks a lot for your help!!!