You will not qualify to be a resident alien until your 5-year exemption period has ended thus the substantial presence test is disregarded during this exemption period.
@tali185982
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"