Yes...20k would be the correct amount.
For dividends, interest and capital gains while ID resident, it would be any of those $$ that you received after moving to Idaho.
ID sourced income while non-resident is usually all zero's........but could apply and have $$ for some fields in some instances if, while you were still a CA resident, if you had already owned a rental property in ID (Farm, land, vacation home) that you received income from, before moving to ID....or if you owned a business in ID while still living in CA. Occasionally some wage income while non-resident occurs, but only if you worked a temp job in ID earlier in the year while still living in CA.
Clearer now?
____________*Answers are correct to the best of my knowledge when posted, but should not be considered to be legal or official tax advice.*