v2.11: don't cast rates and surcharges to integers when calculating cost