Utility for calculating card combinations.