The healthcare TAM is calculated by multiplying the number of potential customers by the average revenue per customer. This calculation considers both the size of the target population and the revenue potential of each customer. It also takes into account any constraints on the market, such as regulatory barriers or competition.