new Forecast(skv_config, arr_tax_charges, arr_tax_company_vehicle)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
skv_config |
struct | To include start_month, start_year, period_months, arr_injectors, region_code |
arr_tax_charges |
array | Tax bands and rates across the tax years (income tax and nic) |
arr_tax_company_vehicle |
array | Tax bands and rates across the tax years (vehicle ben, fuel ben) |
Methods
(static) applyInjectors(arr_injectors, arr_tax_years) → {array}
- Source:
Bring the various injectors together
Parameters:
Name | Type | Description |
---|---|---|
arr_injectors |
array | |
arr_tax_years |
array |
Returns:
Calculated array of tax years
- Type
- array
(static) buildYears(start_month, start_year_full, period_months) → {array}
- Source:
Create the array of years that span the forecast
Parameters:
Name | Type | Description |
---|---|---|
start_month |
number | Month number e.g 5 for May |
start_year_full |
number | Year number e.g 2021 |
period_months |
number | Number of months the forecast will cover |
Returns:
of years
- Type
- array
calculateTaxes() → {array}
- Source:
Calculate all the taxes based on injectors setup previously
Returns:
calculated tax years
- Type
- array