How much you receive from your pension depends on your earnings and your years of teaching service.