Change the calculation for Min. total cost in mobile (#282)