TimeReportDao getDuration fixing business logic and integration tests