Understanding graduation and dropout rates