State tax filing

If the person lived in Delaware from Jul 15, 2022 to Feb 1, 2023 that is more than 183 days. However, it is less than 183 days in 2022. So, in this case does the person have to report the investment income in Delaware?