Continuing Education

In general does anyone know how the big four firms handle advanced degrees and continuing education? If you express an interest in earning a master's degree or going to law school do they generally pay for it all? Roughly how long do you have to stay with the firm after they pay for this?