Wrapper function to calculate discounted annual profits and terminal value.

calculate_annual_profits(
  data,
  baseline_scenario,
  shock_scenario,
  end_year,
  discount_rate,
  growth_rate,
  log_path
)

Arguments

data

data frame containing the full trajectory company data

baseline_scenario

Character. A string that indicates which of the scenarios included in the analysis should be used to set the baseline ald_business_unit trajectories.

shock_scenario

Character. A string that indicates which of the scenarios included in the analysis should be used to set the late & sudden ald_business_unit trajectories.

end_year

Numeric, holding end year of analysis.

discount_rate

Numeric, that holds the discount rate of dividends per year in the DCF. For accepted range compare stress_test_arguments.

growth_rate

Numeric, that holds the terminal growth rate of profits beyond the end_year in the DCF.

log_path

String holding path to log file.

Value

A tibble holding annual profits