Bills win out then pats must lose to jets or fish. The Baltimore game does not matter except it would allow the bills to lose to the eagles. Still be would have to lose to a division team. The loss in Miami is the mig problem here
Here is the good news. If that were to happen then all you need is for Denver to lose two and the bills win the one seeds. Denver plays GB KC LAC and JAgs so that could happen.