def calc_profit(revenue_time_series, opex_time_series, cogs_time_series):
    """
        Profit Formula
        Notes
        ------------
            Profit = revenue from sales - running costs (OpEx and COGS)
    """
    profit_time_series = revenue_time_series - opex_time_series - cogs_time_series 
    return profit_time_series