Filing taxes when moving from one state to another mid year

I moved from NY to NJ during the year and I have to file both state taxes.  Turbotax is asking me $ of my 1099 earnings that was in NJ.  How do I do that? Do I divide the time equally? How do I make Turbotax do the math for my since I am filing both states with Turbo?