Given a travel related situation, and given a specific question about the situation, summarize the question into a title

I'm planning to go to Germany next year. A direct flight from my home country (Dominican Republic) would be about USD $1400. I have B1/B2 US visa and I was wondering if it'd be possible for me to purchase a round-trip flight from DR to Miami and then a second round-trip flight from Miami to Frankfurt. That'd save me up to $500 dollars, which is a considerable amount. I'd like to know if there'd be any issues with me entering the U.S twice in such a short period of time (around 10 days).

Traveling to USA to get a cheaper flight