Hello and thank you for using Just Answer.
To claim the income exclusion you must be out of the US for 330 days to meet the physical presence test. As long as your days out of the US were 330 then you meet the test. You do not meet the physical presence test if illness, family problems, a vacation, or your employer's orders cause you to be present for less than the required amount of time.
If you are claiming Bona Fide Resident then you must have the intentions of returning to the country without unreasonable delay. This is including out of the country for vacation or business.
I sincerely XXXXX XXXXX is useful,