Finding the right formula for funding and maximising support in schools