State tax filing

Thanks. Your comment that the 760 days doesn't have to be consecutive is confusing to me. If I become a Florida resident on Jan. 1, 2024, and spend 5 months every year in my home in NJ, when would I have to sell my NJ home and still take the $500K exclusion? Also, after being in my NJ home for about 50 years, how do I value all the improvements I made? Is there a list of what's considered improvements (i.e. appliances, landscaping, lawn maintenance).