Depends on the immigration category, priority date, and which other related parts of the process have already been completed.
What is the basis of your I-485? Employment? Marriage? Diversity Lottery?
Note that it's called "adjustment of status to permanent residence", not "removal of temporary residence".