correct minimum cost application

http://pm.tablexi.com/issues/79947
add parenthesis in #apply_minimum?

to ensure correct order of operations
Merge pull request #102 from tablexi/min_cost_79947

correct minimum cost application