re-added daysDiff function, which was lost in the cut-over from Joda