We need two days to finish it. 中的不定式是狀語。
It is time to go. 中的不定式是定語。
I have no money to buy it. 中的不定式是定語。
主要從意思上判斷,一個簡單的方法是:若不定式能譯成“……的……”,則不定式為定語;若不定式能譯成“為了……”,則不定式為狀語。