This example will explain how to calculate a score based on the participant's responses using number fields and functions. The example below, will determine a safety score based on the responses to previous questions.

1. Add Select field(s) to capture the participant's responses. 2. Add a Calculated Value field to calculate (but not display) the score using the responses to the select fields added above. Use the dollar sign(\$) to reference the relevant fields in the calculation.

• Type in the formula as "=round((((int(\$safety_officer) + (int(\$fire_extinguisher) + (int(\$emergency_exit) + (int(\$evacuation_drills))))) div 20) * 100),2)"
• Select 'decimal' as the data type. 3. If you want to show the value of the calculation, add another field (e.g. an Information field) and reference the Calculated Value field name using the dollar character(\$) followed by the field name, e.g. \$score Select the Preview button from the toolbar to test your calculation and see how it will be displayed when using the mobile app. The calculated value can also be used as a source field to base skip logic on. For example, certain fields should only be asked if the total score is below 50%.
{"ft_lang_label":"__label__en","ft_lang_prob":0.7971291,"math_prob":0.97399133,"size":1183,"snap":"2020-34-2020-40","text_gpt3_token_len":264,"char_repetition_ratio":0.14079729,"word_repetition_ratio":0.0,"special_character_ratio":0.2366864,"punctuation_ratio":0.10185185,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9876792,"pos_list":[0,1,2,3,4,5,6,7,8,9,10],"im_url_duplicate_count":[null,5,null,5,null,5,null,5,null,5,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-08-12T00:30:13Z\",\"WARC-Record-ID\":\"<urn:uuid:27a12d6c-9be8-4519-9e49-6dab0db6698f>\",\"Content-Length\":\"38145\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:25439424-daff-4675-84cf-f66f7587fae5>\",\"WARC-Concurrent-To\":\"<urn:uuid:7435fc78-b000-4465-a5c7-e91837ee1b4b>\",\"WARC-IP-Address\":\"54.88.190.105\",\"WARC-Target-URI\":\"https://mobenzi.freshdesk.com/support/solutions/articles/17000095920-calculating-a-score-based-on-previous-responses\",\"WARC-Payload-Digest\":\"sha1:OZCEWRYWEDE5VE6H3PZTP5ZH4UIENJOC\",\"WARC-Block-Digest\":\"sha1:CAYCNVLRZT2BHQTDBC6ATBXETN6ZX6KD\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-34/CC-MAIN-2020-34_segments_1596439738858.45_warc_CC-MAIN-20200811235207-20200812025207-00293.warc.gz\"}"}