Formulas: Here’s how we figured the scores for all districts and schools