Tax strategies and legal analysis of investments