def calculate(base_price, artist_markup, quantity):
    """
    Doing the math for getting total value of the cart.
    :param base_price: Base price of the product
    :param artist_markup: Artist markup value from the cart.
    :param quantity: Quntity from the cart.
    :return: Price of the product
    """
    return (base_price + round(base_price * artist_markup / 100)) * quantity