They beat the Braves on Friday, 6-2, to move within three games of the St. Louis Cardinals for the second National League Wild Card with 11 games to play.
That deficit on its own is a tall task, considering if the Phillies finish 8-3 they would need the Cardinals to finish no better than 5-6 to tie. But the Brewers and Dodgers also won Friday. They separate the Cardinals and Phillies in the standings, so the Phillies aren't getting much help from anybody above them in the standings.
To calculate a team's magic number, take the number of games it has remaining and add one. Then subtract the difference in the number of losses between that team and its closest pursuer.
A tiebreaker game will be played to determine a division winner, even if the tied clubs are assured of participating in the postseason. If a division championship tiebreaker is necessary, the head-to-head record between the clubs will determine home-field advantage. If the head-to-head record is tied, then the division record will be the next tiebreaker.
If two clubs are tied for the two Wild Card berths, home-field advantage will be determined by the head-to-head record between the clubs. If the head-to-head record is tied, then the division record will be the next tiebreaker.