if (sum == null || sum == undefined)
          totalSum[id] = c.hours
        else
          totalSum[id] += c.hours