Hello,

I think I found the problem but I dont know how to get around it,
I have bit 5 confusing me when in 24H mode. How do you remove it from calculation,
The problem is this,
You need to get only number between 20 and 23H used with bit 5.
You also need to know what time you are now to do the calculation, at 18H hour you dont need it so RTCHour is 4 bits
at 20H you need the 5 bits,
So which and when to separate the two,... it seems to me like a chicken or egg issue.. which came first,, or in this case .. which to calculate first