Whats the official decay time of wooden structures?

Greetings,

So today I relogged on the server I play after 2 days not playing and all my walls and chest etc were gone
Now, why in the first place has it to be 2 days? it’s little to no time to do something else before your whole progress dissapears into nothing lol

I thought it was 5 days and not 2, so im totally confused now, what is the official time that you have to be inactive for everything to decay?