Added function to get total time of logentries with same week