Deductions & credits

The first 5 calendar years are exempt, so it is the 6th calendar year that starts counting for the Substantial Presence Test.  It is calendar years, so if a person comes in December, the second 'year' starts in January.