Period during school

Ugh I wish I wouldn’t have my period during school because of the diarrhea factor. We aren’t allowed to be in the bathroom for more than 5 minutes or else a teacher comes in and checks on us. Like it’s middle school why does this need to happen? And it doesn’t help that my teachers are all boys