make average only when there are some tasks