We've had a bazillion tie-breaker threads that have covered this. The latest, bizarrely named "Playoff chances", can be found just a few threads down (at the moment of this writing):
http://www.thedolphinsmakemecry.com/forums/index.php?topic=15648.0Let me quote Spider Dan for the answer to your question:
If BAL and MIA win out (and no other team is at 10-6), BAL wins.
3rd tiebreaker is common games, minimum of four. In the case of BAL and MIA, common games are NE, PIT, SD, IND.
If MIA wins out, they will be 2-3 (losses to NE, IND, SD)
If BAL wins out, they will be 3-2 (losses to NE, IND)
As the thread also details, it's possible for the Dolphins to get in if the Broncos lose a game. With the Dolphins, Ravens, and Broncos all at 10-6, Baltimore would get the first Wild Card while the second one would come down to Strength of Victory between Miami and Denver -- which is very, very close (exactly even, in fact, although the future schedule favors Denver's strength of schedule score).