Fixing timeperiod exclusion issue

This is solving the test cases for me right now.... nevertheless, the daterange/timeperiod should be ways more documented than the current state ...