In this paper, we examine the relation between ethics and mathematics and, through the formulas, we conclude a negative or positive behavior. If it was negative, it would behave incorrectly and if it was positive, it would be correct. Of course, each behavior is considered completely separate, and many of the benefits to each behavior may not be known yet. So any behavior will have either positive or negative effects; here is just one example of this template to illustrate them. Smoking was considered as a behavior. Given the advantages and disadvantages, an impact was defined for each, and eventually these impacts were expressed in terms of numbers, and the result was a negative number, which indicates that smoking is a negative behavior.