[FIX] Use min()

Merged Gabriel Davini requested to merge 8.0-return_tax into 8.0-stage

Merge request reports