Hello!
I need to be able to add a gradient if one fee is 10% higher to 30% higher than the base cost or 10% lower to 30% lower than the base cost.
Example: I have a base cost of $15. Different comparison costs are $10 and $20. I need to be able to add a gradient color depending on the percentage difference between the two costs and the base cost. So since $10 is more than 30% lower than $15, it would be dark green. The $20 comparison is more than 30% high and would be bright red. Any help would be appreciated.
Maybe I could use an IF statement?
I need to be able to add a gradient if one fee is 10% higher to 30% higher than the base cost or 10% lower to 30% lower than the base cost.
Example: I have a base cost of $15. Different comparison costs are $10 and $20. I need to be able to add a gradient color depending on the percentage difference between the two costs and the base cost. So since $10 is more than 30% lower than $15, it would be dark green. The $20 comparison is more than 30% high and would be bright red. Any help would be appreciated.
Maybe I could use an IF statement?