Complex sentence: By the time the British realized the Ottoman forces were retreating, General Townshend had concluded he needed to retreat as well, his losses had been too great to continue the effort to take Baghdad.
Split into simpler sentences: By the time the British realized the Ottoman forces were retreating, General Townshend had concluded he needed to retreat as well. His losses had been too great to continue the effort to take Baghdad.