you mean something like:
```
tmp_sum = sum
(tmp_sum * ([0, CONFIG['tip_percent'].to_i].max)/100.0 + tmp_sum).round(1)
```