Starting from the time of biur chametz, you should avoid any rooms or areas of the house containing chametz sold to the non-Jew that is not locked away.
If an individual is forced by circumstances to spend Yom Tov in a place where chametz will be present, they should ask a Rav how best to conduct themselves.