Bugfix in getWorkingPeriods and getDays

Change-Id: I5d25da08b17ddd20e2cf2cc64fcefe92f121b0bd
Signed-off-by: Stephan <stegiemail-github@yahoo.de>