Crunching the numbers on compensation for teachers