There is one approach that simplifies calculation of things based on complex conditions, and I will show you how to do it, based on… — If you are coding for more than 1 month you probably get to the point where there is this bad-looking logic calculating something, based on a lot of rules that create this jungle of if’s. Let’s say that we need to calculate the discount for the customer, and there is…