India Pale Ale, Algoritm