Different schools use different scales for detentions. This means that one bad behavior could put you in detention, or maybe it takes four bad behaviors. This this scale is totally up to your school.
You can keep track of your behaviors using your slip. If you have more questions about your school's detention scale, please ask your teacher.