If I sold a home early in the year and then got married late in the same year does the 500k credit apply or just the 250k?