Fixing 'planner' date math