Fixed calculation of days, changed to a preference model

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