It does sound correct. See below.
IRS Publication 523 page 6
Does your home qualify for a partial exclusion of gain?
You meet the requirements for a partial exclusion if any of the following events occurred during your time of ownership and residence in the home.
- You took or were transferred to a new job in a work location at least 50 miles farther from the home than your old work location. For example, your old work location was 15 miles from the home and your new work location is 65 miles from the home.
- You had no previous work location and you began a new job at least 50 miles from the home.
- Either of the above is true of your spouse, a co-owner of the home, or anyone else for whom the home was his or her residence.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"