state origin of income

For social security and dividend income in the state tax portion, we need help deciding the state or origin.  We now live in New Haven, CT but some of the dividends and social security we received while living in New York.  How should we calculate the "New York portion"?