I have recently faced with problem that the real timeout and calculated aren't equal. The formula is described as in the screenshot below. But the WWDG initiates a reset when the counter (T[5:0]) changes value from 0x40 to 0x3F. Then we have only 128...