Calculator computes on base percentage for baseball players given number of hits, number of walks, number of hits by pitch, and total number of times at bat