added number grouping method to group the total time