Get your taxes done using TurboTax

at the start of state taxes for VA you should get a question if you were a part-year resident then you give your dates of residency.  then go thru the income page (most of which probably doesn't apply), click "done with income" and you'll get a page "How Virginia Handles Income for Part-Year Residents" and continue thru that.  Not sure about PA but presumably similar.760PY.png