fix: fix task wait time computation