Fixed problem with wrong duration calculation due to timestamp comparison

Signed-off-by: Malte Sussdorff <malte.sussdorff@cognovis.com>
Fixed the calculation of remaining days

Signed-off-by: Malte Sussdorff <malte.sussdorff@cognovis.com>
Fixed problem with ignored absences when we have overlapping

Signed-off-by: Malte Sussdorff <malte.sussdorff@cognovis.com>
Correctly calculate duration days

Signed-off-by: Malte Sussdorff <malte.sussdorff@cognovis.com>