def cost(self):
        assert(self._calculated)
        settings =  config_get_group('shipping.modules.ups')
        if settings.HANDLING_FEE and Decimal(str(settings.HANDLING_FEE)) > Decimal(0):
            self.charges = Decimal(self.charges) + Decimal(str(settings.HANDLING_FEE))

        return(Decimal(self.charges))
Complex calculations can be done here as long as the return value is a decimal figure
dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/shipping/modules/ups/shipper.py/Shipper.cost