Added fix for duration calculation if we have a start and end date given

Signed-off-by: Malte Sussdorff <malte.sussdorff@cognovis.com>
Merge branch 'master' of github.com:cognovis/intranet-timesheet2