helper for worktime