Ban for leaver

Maybe someone can explain me how ban for leave work. Power in my home has gonne i didnt connect to server before 5 min to ban but i join after 7 min and i got ban for 24 hours but last time when i got ban for leave was 200 matches ago wtf is that system of ban.