State tax filing

Thank you for the info.  I can't figure out how to do that in Turbo Tax.  Do I add it to capital gains for my California return or my Utah return?  And after I do that where/how do I claim it as a credit on the other?