Complex sentence: He transferred to Manchester United on 13 July 2015, having been at Bayern for 17 years.
Split into simpler sentences: He transferred to Manchester United on 13 July 2015. He had been at Bayern for 17 years.