So since I'm a retard and don't know where the fucking spoiler button is located, I'm posting code on pastebin.
BreakHandler code:
https://pastebin.com/raw/A6vG6u3B
Make a class and call it BreakManager, then drop that code in there. ezpz.
Then you can use it in your script like this.
https://pastebin.com/raw/9BHMK3kn
When you initialize the BreakManager in your onStart method, you gotta remember that it's set to hours. AKA
BreakManager bm = new BreakManager(1 hour, 1 hour);
(Don't actually write hour though)
You can change the time format yourself, but I just made it hours. Ok bye