Fixed small mistake in logic for dueDate