def calculate_profit(price_ago, current_price):
    """
    Calculates the profit of a price regarding a previous one.
    :param price_ago: First price.
    :param current_price: Last price.
    :return: Profit in percentage.
    """
    profit = (current_price - price_ago) / float(price_ago) * 100
    return profit