Have a Tax Question? Ask a Tax Expert
If you operate your online business from location in PA - the income that your business generated is considered an income from PA sources and taxable for PA.
Next - you need to determine your residency status for PA and CA.
If you are asking for 2007 here are forms to use:
The income you earned while physically located in PA - is the income from PA sources; the income you earned while physically located in CA - is the income from CA sources.
As you are a non-resident of PA - only your income from PA sources is taxable on your PA income tax return. You should include the income from a job at the university and prorated part of your business income.
As you are a resident of CA - all your income regardless its source is taxable on CA income tax return. To determine the CA credit - use the form S - 2007 Other State Tax Credit - http://www.ftb.ca.gov/forms/07_forms/07_540s.pdf - scroll down for instructions.