The question is what is the goal.
If the goal is that the node has to prove some stability and durability then vetting within of 5 days is wrong.
There is no time setting in the code piece that you have posted similar to this one:
Maybe like this:
Passing audit should consist of a minimum number of successful audits + a minimum number of consecutive successful audits + a minimum of ((consecutive) online) days before a node leaves vetting phase and can receive full data.
So it could be for example: 1 count for every X consecutive audits, if fail, then reset.
After Y counts = vetted unless minimum (online) time z has not passed. After minimum (online) time z has passed = vetted.