Raise an exception when dates are the same, instead of returning None.
Some documentation as well