No homework in detention sounds absolutely fucked.
There were a couple times in high school I actually asked to go to detention after class, just to do homework. Because I knew it was a quiet, distraction-free space where I could concentrate on a time-sensitive task. Baffled the detention supervisor, she probably wondered if I was having a bad situation at home I was trying to avoid, but no, just wanted to protect myself from myself. And it was very effective every time.
I’d call it a damped spring oscillation. Still goes up and down, but the extremes peter out with time.