viewof scenario = cell(`scenario(x, y) = {
units_of_value_generated_by_changes_in_non_philanthropic_smc_funding = y.expected_change_in_smc_funding * units_of_value_generated_per_dollar_spent_before_accounting_for_leverage_or_funging(x)
units_of_value_generated_by_changes_in_non_philanthropic_counterfactual_program_funding = - (y.expected_change_in_smc_funding * y.non_philanthropic_actor_value)
net_units_of_value_generated_by_changes_in_non_philanthropic_spending = units_of_value_generated_by_changes_in_non_philanthropic_smc_funding + units_of_value_generated_by_changes_in_non_philanthropic_counterfactual_program_funding
net_units_of_value_generated_by_philanthropic_spending = (total_units_of_value_generated_before_accounting_for_leverage_or_funging(x) * x.percentage_of_total_costs_covered_by_malaria_consortium) - net_units_of_value_generated_by_changes_in_non_philanthropic_spending
net_units_of_value_generated_by_philanthropic_spending
}
0`, [units_of_value_generated_per_dollar_spent_before_accounting_for_leverage_or_funging, total_units_of_value_generated_before_accounting_for_leverage_or_funging])