The war in Afghanistan, aimed at establishing full political control over the country, lasted 2,238 days