Substantial Presence Test Formula