Fix date math, typo