Added the calculation of the time for days and tasks.