Fix date comparison issues

Add the ability to choose inclusive or exclusive reckoning