Entering the 2017 season, the Yankees appeared to be in the midst of a rebuild — as much as that’s possible with the Bronx Bombers. But when the Yanks still were in first place at the nonwaiver trade deadline, the tables turned.

Now, in the closing stretch of the season, they’re fighting to get back atop the division while holding on to the top wild-card spot. Here’s a look at some important numbers as the Yankees try to make the playoffs.

Games left: 11

AL East standings

Red Sox: 87-64 (Magic number: 9)

Yankees: 84-67, 3 games back

Rays: 73-78, 14 games back

advertisement | advertise on newsday

Orioles: 73-79, 14.5 games back

Blue Jays: 71-80, 16 games back

AL wild-card standings

Yankees: 84-67, 6 game lead

Twins: 78-73, second wild card

Yankees videos

Angels: 76-74, 1.5 games back

Rangers: 74-76, 3.5 games back 

Mariners: 74-77, 4 games back

Royals: 73-77, 4.5 games back

Rays: 73-78, 5 games back

advertisement | advertise on newsday

Orioles: 73-79, 5.5 games back

Games left vs. division: 9

Games left vs. wild-card contenders: 5

Home games: 8

Away games: 3

advertisement | advertise on newsday

Games vs. Twins: 1

Games vs. Royals: 1