It could work the other way as well. If the Taliban leaders tell their soldiers "They're all gonna be gone in 18 months, you've gotta keep fighting for only 18 months", and then the Americans are still there after, say, 24 months (As Obama said he would start pulling out after 18 months), then it's likely that a proportion of the Taliban will be discouraged.