I think that you can change the formation till 3 minutes before the match, not 5, but need to confirm.