how to calculate sets - Search