I want to add the growth percentage in the P & L budget forecast in the future years.
Can you give me advice and help me with (example) code.
I will try to explain what I want to do.
Step 1
Select in the drop down menu the sector in which the company is active.
Step 2
Select in the drop down menu the number of employees.
if sector is food and employees is 1-5 then growth_percentage is 0.02 (2%)
if sector is food and employees is 6-10 then growth_percentage is 0.022 (2,2%)
if sector is food and employees is 11-20 then growth_percentage is 0.025
if sector is food and employees is 21-50 then growth_percentage is 0.028
if sector is food and employees is 51-100 then growth_percentage is 0.03
if sector is food and employees is > 100 then growth_percentage is 0.035
if growth percentage is … then add this to the revenue last year and place this new figure for revenue in the first future year.
then add the growth percentage to the revenu of this first future year and place this new figure for revenue in the second future year. Etc. etc up to and including the fifth future year.
{::infotext as=“hover”}
Select the sector in which the company is active.
The sector together with the number of employees of the company determines the average growth rate of similar companies in the sector.The data of
the average growth figures per sector comes from the statistics bureau and trend reports from the top 3 banks and is updated twice a year.
{:/infotext}
{% t= “Construction|Retail non-food|Services|Food|Healthcare|Wholesale|Hospitality & Leisure|Industry/Manufacturing|Agriculture & Horticulture|Mobility & Transport” %}
{% capture sector_types %}{% t “Construction|Retail non-food|Services|Food|Healthcare|Wholesale|Hospitality and Leisure|Industry|Agriculture & Horticulture|Mobility & Transport” %}{% endcapture %}
|Sector
|---------+#
|{% input custom.val.sector as:select options:sector_types option_values:“Construction|Retail non-food|Services|Food|Healthcare|Wholesale|Hospitality & Leisure|Industry|Agriculture & Horticulture|Mobility & Transportbouw” %}
{% assign multip = custom.val.sector %}
{::infotext as=“hover”}
Select the number of employees.
The number of employees together with the sector determines the average growth rate of similar companies in the sector.The data of the
average growth figures per sector comes from the statistics bureau and trend reports from the top 3 banks and is updated twice a year.
{:/infotext}
{% t= “1 - 5 | 6 - 10 | 11 - 20 | 21 - 50 | 51 - 100 | > 100” %}
{% capture employees_types %}{% t “1 - 5 | 6 - 10 | 11 - 20 | 21 - 50 | 51 - 100 | > 100” %}{% endcapture %}
|Number of employees
|---------+#
|{% input custom.val.employees as:select options:employees_types option_values:“1 - 5 | 6 - 10 | 11 - 20 | 21 - 50 | 51 - 100 | > 100” %}
{% assign multip = custom.val.employees %}
Average sector revenue growth for {{company.name}}
|{% input.custom.letter.growth_percentage as:percent %}|
{% assign revenue = period.accounts | range:“70” %}
{% assign start_date = period.year_start_date | date:"%Y" %}
{% assign end_date = period.year_end_date | date:"%Y" %}
| Description |{% if start_date == end_date %}{{ start_date }}{% else %}{{start_date}} - {{end_date}}{% endif %}{% for i in (1…5) %} | {{ INT(start_date+i) }}{% endfor %}
|------------|----------{% for i in (1…5) %}|----------{% endfor %}+
|Revenue | {{ -1revenue | currency }} {% for i in (1…5) %}| {% capture year %}plus_{{ forloop.index }}y{% endcapture %}{% assign revenue_value = period[year].accounts.70 %}{{ -1revenue_value | currency }}{% endfor %}