Almost finished the setTotalWorkTime, currently small error