By 3am latest but ideally at 1am. But everyone's different.
My kids have to get up at approx. 7.30am and they have to be in bed by 10pm with lights out by 10.30pm. At the moment they've just gone back to school and are wiped out so they tend to put themselves to bed a bit earlier on some weekdays.