Which word to use for "day" when talking about lengths of time?
Both of the "天" and "日" as the "量词" are correct.

In the modern standard Chinese, people will say "我觉得我会待两三天" in their daily life, and will say "我预计我将停留两三日" in the formal situation such as applications or official documents.