The Pew study looked at how well long-term revenues covered costs between 2002 and 2015. While the Great Recession led to deficits by all but one state (Montana) in at least some years in that 14-year period, that was balanced out by most states building and using surpluses in other years as rainy day funds.