def get_percentage(old, new):
    """Gets percentage from old and new values

    Args:
        old (num): old value
        new (num): new value
    Returns:
        number: Percentage, or zero if none
    """
    try:
        return 100 * (old - new) / old
    except ZeroDivisionError:
        return 0
