def CheckUpperLimitWithNormalization(value, upperLimit, normalization=1, slack=1.e-3):
    """Upper limit check with slack.

    Check if value is no more than upperLimit with slack.
    Args:
        value (float): Number to be checked.
        upperLimit (float): Upper limit.
        normalization (float): normalization value
        slack (float); Slack for check.
      
    Returns:
        bool: True if value is no more than upperLimit with slack

    """

    if(value - upperLimit <= normalization*slack):
        return True
    else:
        return False