task calculation