Bills need to win out.
NE needs to lose out.
Jets need to lose the next 2.
Phins need to lose the next 2.
Jets & Phins need to tie on week 17.
AFC east standings would be:
Bills 9-7
Jets 8-7-1
Phins 8-7-1
NE 8-8
Bills win AFC east
A wildcard is not possible.
The Colts already have the conference record tiebreaker for one wild card spot, so the Bills cannot beat out the Colts.
The Ravens already have the common opponent tiebreaker. They would go 3-1 against Oak, Cle, Mia, Jax while the Bills are 2-2 against those opponents, so the Bills cannot beat out the Ravens.