calculating the beers