When to claim a home purchase for a one time close construction? Is it the initial closing date or final closing after you receive the certificate of occupancy?

The two date cross tax years and the new construction home is in a different sate than the one we currently reside in.