DCF model — endpoints, data sources and known defects

The calculator’s server-side calculations, the Eurostat query, the simulated and hard-coded inputs, and the list and form copied from the label module.

analysis/dcfmodell is a discounted cash flow calculator for property investments (rental income, costs, HICP indexation, financing, WACC, exit). The menu item follows canSee(list); the endpoints run without a right check.

Endpoints

EndpointBehaviourRight
analysis/dcfmodell (index)the calculator form, income fields from a schemanone
calcCapital, calculateWACC, generateCashflow, cashflowserver-side calculation from the POST data: equity/debt ratio, WACC, monthly cash flow table, period resolution; no database writenone
hicpthe latest annual HICP rate from the Eurostat API (prc_hicp_manr)none
getHICPInputsa random (simulated) value of 2.0–5.0% per yearnone
fxRatehard-coded rates: EUR 400, USD 370, GBP 470, others 1none
list, getList, formrender the masterdata/label label list and form with the label templatenone
save, deletesave or delete a label through the masterdata/label modelcore modify on the masterdata/label path

Permissions

  • list (UNMAPPED, visibility_layer_v2_list_seed.sql): only decides menu visibility; the controller never checks it.
  • The index “Add” button shows on the masterdata/label::add key (not in the seeds).

Known limitations

  • The controller was made from a copy of the label module: list, form, save and delete actually handle labels. The own model (admin/model/analysis/dcfmodell.php) is also a copy of the label model and is not loaded by the controller.
  • The yearly HICP input is simulated, the exchange rates are hard-coded.
  • The calculation endpoints check no right.