def getDecimalPlacesCarried(extraDecimalPlaces, value):
 return max(0, (1 + int(math.ceil((extraDecimalPlaces - math.log10(value))))))

def getDecimalPlacesCarried ( extraDecimalPlaces , value ) : return max ( 0 , ( 1 + int ( math . ceil ( ( extraDecimalPlaces - math . log10 ( value ) ) ) ) ) )
get decimal places carried by the decimal places of the value plus the extradecimalplaces .