TAM refers to the total market demand for the products and services such as yours while SAM is the segment of TAM that is in your reach geographically.