That is discussed here.
https://www.google.com/amp/s/ttlc.intuit.com/community/state-taxes/discussion/can-i-deduct-investmen...