Fix a nullpointer exception on empty result set
Round days syntax sugar to full days