This is the correct way to manage a budget.
The budget software I use (“you need a budget”) follows a similar philosophy; based on the way you describe you financial circumstances, paying for that software is probably not in your budget, but I suspect you will find the “rules”/method/philosophy described on their website helpful.
He’s just preparing for his eventual conviction and stint in prison.