Translate the following English sentence to French:
"Of course we have agreed that they must reach an agreement by May next year."
Mais nous avons convenu qu' ils devaient se mettre d' accord d' ici le mois de mai de l' année prochaine.