A lot of people calculate these, like an 8 dollar cup of coffee every morning over course of 10 years (including inflation) would worth enough to be a huge capital for a house down payment too, or smoking, or drinking, hell even like netflix subscription if you think about it.
When you combine all of this, imagine living a life where you do not smoke drink or go out or eat anything expensive, you just eat noodles, drink tap water, watch cable tv, and sleep without doing anything else and spending nothing more, I guarantee you that you will not even see retirement because you will get sick from living a terrible life. We should be able to afford these and still retire, the fact that we can't isn't our problem but capitalisms desire.
Yes, if we calculate what we have spent, I think it will make us regret it. This is just a mindset that is usually given by motivators to diligently save or invest. Unfortunately, the real situation is not like that. Sometimes we need something to make us feel better and more enthusiastic, and to make our minds feel fresh again. However, I agree that smoking can be detrimental to a person, because it has so many positive alternatives, especially at a young age.