Calculating polycub yields