Date calculation for test case has a fencepost coverage error