Sum of all Times in weekly view was not calculated correctly

We had some Problems with the calculation of daily totals. In case this is a general problem, I propose this solution.