def getDiff(child, bar):
    """Calculates the difference in pieces of a chocolate bar to 
    the requested pieces by a child.
    Args:
        child: An integer with pieces requested.
        bar: An integer with the number of chocolate pieces.
    Returns:
        An integer value with the difference of the requested pieces
        and the given bar size.
    """
    return  bar - child