figure out average percentage