500
Calm down first. Apologize, then offer to do something with them (like sit together at lunch, be partners in phys ed. etc.)
You came to school tired and in a bad mood. When a friend came over to talk, you ended up yelling at them and calling them a name. What could you do?