calculate a percentage from a two- way frequency table