def GetReturnRates(price, days=1):
    """
    Returns percent return rate for last N days.
    """
    startPrice = price[-1 - days]
    endPrice = price[-1]
    return ((endPrice - startPrice) * 100) / startPrice