Hi @ikuzmych ,
In fact, it is very easy.
1. know the clock source

2. then do the prescaler, then calculate your needed timeout value.
3. About the code, you can refer to the SDK:
SDK_2_11_0_EVK-MIMXRT1020\boards\evkmimxrt1020\driver_examples\rtwdog
More details, read the RT1020RM,Chapter 53 RTWDOG (WDOG3), you will be more clearly.
Wish it helps you!
Best Regards,
kerry