uuid: 324ce688-e06d-4456-9b40-ef95fabf44ef
langcode: en
status: open
dependencies:
  module:
    - foord_calculator
weight: 0
open: null
close: null
uid: 1
template: false
archive: false
id: calculator
title: Calculator
description: 'Form used to calculate the amount a person would have saved if they had invested in a specific fund at a specific date.'
categories: {  }
elements: |-
  currency:
    '#type': radios
    '#title': Currency
    '#title_display': invisible
    '#options':
      ZAR: ZAR
      USD: USD
    '#options_display': two_columns
    '#default_value': ZAR
    '#required': true
  zar_description:
    '#type': processed_text
    '#states':
      visible:
        ':input[name="currency"]':
          value: ZAR
    '#text': |
      <div class="calc-info-wrapper"><span class="calc-info">Using rand returns of Foord’s best investment view South African funds. </span> <span class="calc-info--icon-wrap"> <span class="calc-info--icon-wrap--icon">?</span> <span class="calc-info--text">In calculating the current value of your hypothetical investment, we have applied the returns of Foord Asset Management’s retirement fund track record from 1 January 1990 to 31 March 2008 (gross of fees) combined with the net returns of the Foord Flexible Fund of Funds from 1 April 2008. Any information provided is not intended nor does it constitute financial, tax, legal, investment, or other type of advice, and the suitability or potential value of any information or particular investment source is not guaranteed. Performance may be affected by changes in the market or economic conditions and legal, regulatory and tax requirements. Distributions may be subject to mandatory withholding taxes. Foord does not provide any guarantee either with respect to the capital or the performance return of investments.</span> </span></div>
    '#format': full_html
  usd_description:
    '#type': processed_text
    '#states':
      visible:
        ':input[name="currency"]':
          value: USD
    '#text': |
      <div class="calc-info-wrapper"><span class="calc-info">Using US dollar returns of Foord’s best investment view global fund. </span> <span class="calc-info--icon-wrap"> <span class="calc-info--icon-wrap--icon">?</span> <span class="calc-info--text">In calculating the current value of your investment, we have applied the long-term returns of the Foord International Trust. These returns are calculated net of fees. Past performance is no guarantee of future performance. Foord Asset Management (Singapore) Pte. Limited disclaims any liability for any loss, liability, or damages (whether direct or consequential) of any nature whatsoever that may be suffered as a result of, or which may be attributable, directly or indirectly to the use of or reliance upon the information provided.</span> </span></div>
    '#format': full_html
  amount:
    '#type': number
    '#title': Amount
    '#title_display': invisible
    '#description_display': invisible
    '#placeholder': Amount
    '#wrapper_attributes':
      class:
        - input__wrapper
    '#attributes':
      class:
        - 'input input-full input-dark'
    '#min': 0
    '#required': true
  date:
    '#type': datelist
    '#title': 'Invested in'
    '#title_display': before
    '#states':
      visible:
        ':input[name="currency"]':
          value: ZAR
      required:
        ':input[name="currency"]':
          value: ZAR
    '#wrapper_attributes':
      class:
        - 'input__wrapper fz0 is-full'
    '#attributes':
      class:
        - 'input-half input-dark'
    '#label_attributes':
      class:
        - calc-title
    '#date_date_min': 'Feb 1990'
    '#date_date_max': '-1 year'
    '#date_part_order':
      - month
      - year
    '#date_year_range': '1990:now'
    '#min': '01 Jan 1990'
    '#max': now
  date_usd:
    '#type': datelist
    '#title': 'Invested in'
    '#title_display': before
    '#states':
      visible:
        ':input[name="currency"]':
          value: USD
      required:
        ':input[name="currency"]':
          value: USD
    '#wrapper_attributes':
      class:
        - 'input__wrapper fz0 is-full'
    '#attributes':
      class:
        - 'input-half input-dark'
    '#label_attributes':
      class:
        - calc-title
    '#date_date_min': 'Apr 1997'
    '#date_date_max': '-1 year'
    '#date_part_order':
      - month
      - year
    '#date_year_range': '1997:now'
    '#min': '01 Apr 1997'
    '#max': now
  actions:
    '#type': webform_actions
    '#title': 'Submit button(s)'
    '#submit__label': Calculate
    '#submit__attributes':
      class:
        - 'btn btn--full btn--naartjie'
    '#update__attributes':
      class:
        - 'btn btn--full btn--naartjie'
css: ''
javascript: ''
settings:
  ajax: true
  ajax_scroll_top: ''
  ajax_progress_type: ''
  ajax_effect: ''
  ajax_speed: null
  page: false
  page_submit_path: ''
  page_confirm_path: ''
  page_theme_name: ''
  form_title: both
  form_submit_once: false
  form_open_message: ''
  form_close_message: ''
  form_exception_message: ''
  form_previous_submissions: true
  form_confidential: false
  form_confidential_message: ''
  form_disable_remote_addr: false
  form_convert_anonymous: false
  form_prepopulate: false
  form_prepopulate_source_entity: false
  form_prepopulate_source_entity_required: false
  form_prepopulate_source_entity_type: ''
  form_unsaved: false
  form_disable_back: false
  form_submit_back: false
  form_disable_autocomplete: false
  form_novalidate: false
  form_disable_inline_errors: false
  form_required: false
  form_autofocus: false
  form_details_toggle: false
  form_reset: false
  form_access_denied: default
  form_access_denied_title: ''
  form_access_denied_message: ''
  form_access_denied_attributes: {  }
  form_file_limit: ''
  form_attributes:
    class:
      - 'calculator calc-dark home-calc'
  form_method: ''
  form_action: ''
  share: false
  share_node: false
  share_theme_name: ''
  share_title: true
  share_page_body_attributes: {  }
  submission_label: ''
  submission_exception_message: ''
  submission_locked_message: ''
  submission_log: false
  submission_excluded_elements: {  }
  submission_exclude_empty: false
  submission_exclude_empty_checkbox: false
  submission_views: {  }
  submission_views_replace: {  }
  submission_user_columns: {  }
  submission_user_duplicate: false
  submission_access_denied: default
  submission_access_denied_title: ''
  submission_access_denied_message: ''
  submission_access_denied_attributes: {  }
  previous_submission_message: ''
  previous_submissions_message: ''
  autofill: false
  autofill_message: ''
  autofill_excluded_elements: {  }
  wizard_progress_bar: true
  wizard_progress_pages: false
  wizard_progress_percentage: false
  wizard_progress_link: false
  wizard_progress_states: false
  wizard_start_label: ''
  wizard_preview_link: false
  wizard_confirmation: true
  wizard_confirmation_label: ''
  wizard_auto_forward: true
  wizard_auto_forward_hide_next_button: false
  wizard_keyboard: true
  wizard_track: ''
  wizard_prev_button_label: ''
  wizard_next_button_label: ''
  wizard_toggle: false
  wizard_toggle_show_label: ''
  wizard_toggle_hide_label: ''
  wizard_page_type: container
  wizard_page_title_tag: h2
  preview: 0
  preview_label: ''
  preview_title: ''
  preview_message: ''
  preview_attributes: {  }
  preview_excluded_elements: {  }
  preview_exclude_empty: true
  preview_exclude_empty_checkbox: false
  draft: none
  draft_multiple: false
  draft_auto_save: false
  draft_saved_message: ''
  draft_loaded_message: ''
  draft_pending_single_message: ''
  draft_pending_multiple_message: ''
  confirmation_type: message
  confirmation_url: ''
  confirmation_title: ''
  confirmation_message: '<span class="is-hidden">ok</span>'
  confirmation_attributes: {  }
  confirmation_back: false
  confirmation_back_label: ''
  confirmation_back_attributes: {  }
  confirmation_exclude_query: false
  confirmation_exclude_token: false
  confirmation_update: false
  limit_total: null
  limit_total_interval: null
  limit_total_message: ''
  limit_total_unique: false
  limit_user: 10
  limit_user_interval: 600
  limit_user_message: ''
  limit_user_unique: false
  entity_limit_total: null
  entity_limit_total_interval: null
  entity_limit_user: 10
  entity_limit_user_interval: 600
  purge: none
  purge_days: null
  results_disabled: false
  results_disabled_ignore: false
  results_customize: false
  token_view: false
  token_update: false
  token_delete: false
  serial_disabled: false
  form_login: false
  form_login_message: ''
  submission_login: false
  submission_login_message: ''
access:
  create:
    roles:
      - anonymous
      - authenticated
    users: {  }
    permissions: {  }
  view_any:
    roles: {  }
    users: {  }
    permissions: {  }
  update_any:
    roles: {  }
    users: {  }
    permissions: {  }
  delete_any:
    roles: {  }
    users: {  }
    permissions: {  }
  purge_any:
    roles: {  }
    users: {  }
    permissions: {  }
  view_own:
    roles: {  }
    users: {  }
    permissions: {  }
  update_own:
    roles: {  }
    users: {  }
    permissions: {  }
  delete_own:
    roles: {  }
    users: {  }
    permissions: {  }
  administer:
    roles: {  }
    users: {  }
    permissions: {  }
  test:
    roles: {  }
    users: {  }
    permissions: {  }
  configuration:
    roles: {  }
    users: {  }
    permissions: {  }
handlers:
  calculator_form_handler:
    id: calculator_form_handler
    handler_id: calculator_form_handler
    label: 'Calculator form handler'
    notes: ''
    status: true
    conditions: {  }
    weight: 0
    settings:
      csv_file: WEB_COMPOSITE_PERF_DATA.CSV
variants: {  }
