No, you don’t always come out ahead.
The math on the punch card, is intended to create the same revenue regardless of how the consumer “pays” for the drink (punch card VS room charge)
Each punch is worth roughly $2.50. You can get a large cappuccino at the cafe for about five bucks
Also, NO, gratuity is not included in the price on your screen shot, so add 18% to that $31