Multiplication problem

Multiplication problem

Hi Zoho users and team!

Hi have some problem with a formula with deluge script (This script is used in a html view). 

Here is the code:

  1. <%wage = (currentJob.Time_allocated_to_Service_Partner_in_hour * hourly_wage1 * Category);%>
And here is the error:
Error in executing Long_job_description1 view script.
Error.
Error in executing Set Variable task. Unable to update template variable wage.
Error evaluating NUMERIC expression :
Error evaluating NUMERIC expression : Unable to perform the operation * over the operand 10 and null.
Error performing the operation * : Error.
Error performing the operation * : Error.
The value of variable hourly_wage1 is null.
Can someone help me?

Thank you very much!

Here is the entire code:
  1. <%{%>
  2. <p>

  3. <!--Declaring variables-->
  4. <%for each x in Job
  5.     {
  6.         if (x.ID  ==  input.JobID.toLong())
  7.         {
  8.             currentJob = x;
  9.         }
  10.     }%>

  11. <%for each y in Service_partners
  12.     {
  13.         if (y.ID  ==  currentJob.spID)
  14.         {
  15.             currentSP = y;
  16.         }
  17.     }%>

  18. <!--Boolean conversion into text-->

  19. <%if (currentJob.Type_of_transcription  ==  "Please transcribe everything word by word.")
  20.     {
  21.         txt = "Everything needs to be transcribed precisely. Fillerwords and non-verbal elements of communication are included.";
  22.     }%>
  23. <%if (currentJob.Type_of_transcription  ==  "Content focused - please transcribe to get the content across clearly. Omit repetitions, self corrections etc.")
  24.     {
  25.         txt = "The focus lies on readability. Fillerwords and non-verbal elements of communication are omitted. Dialect and colloquial language elements approximated to standard language.";
  26.     }%>
  27. <%if (currentJob.addon_1)
  28.     {
  29.         Addon_1 = "Transcribe interjections which are used to fill pauses. ";
  30.     }%>
  31. <%if (!currentJob.addon_1)
  32.     {
  33.         Addon_1 = "Omit interjections which are used to fill pauses.";
  34.     }%>
  35. <%if (currentJob.addon_2)
  36.     {
  37.         Addon_2 = "Include interjections which are monosyllabic answers. (positive: ‘mh = hm’, ‘ah = ha’ or negative: ‘hm = mh’, ‘eh = eh’). If necessary write them as ‘mhm (affirmative)’ or ‘hm-m (negative)’.";
  38.     }%>
  39. <%if (!currentJob.addon_2)
  40.     {
  41.         Addon_2 = "Omit interjections which are monosyllabic answers. (like ‘mh = hm’)";
  42.     }%>
  43. <%if (currentJob.addon_3)
  44.     {
  45.         Addon_3 = ("Indicate pauses in the speech by full stops in parentheses, corresponding to the pause length from 1 second (.) to three (…) seconds.");
  46.     }%>
  47. <%if (!currentJob.addon_3)
  48.     {
  49.         Addon_3 = "Do not transcribe pauses in the speech.";
  50.     }%>
  51. <%if (currentJob.addon_4)
  52.     {
  53.         Addon_4 = "Indicate an interruption with a note in parentheses.(food is served), (phone rings)";
  54.     }%>
  55. <%if (!currentJob.addon_4)
  56.     {
  57.         Addon_4 = "Do not indicate interruptions of the audio, for example if a phone rings.";
  58.     }%>
  59. <%if (currentJob.addon_5)
  60.     {
  61.         Addon_5 = "Insert a time stamp at the end of every page. (hh:mm:ss)";
  62.     }%>
  63. <%if (!currentJob.addon_5)
  64.     {
  65.         Addon_5 = "You don't have to insert time stamps at the end of every page. Only use them to mark words you are uncertain about (see 'Guidelines for transcription').";
  66.     }%>

  67. <!--Fetching variables-->

  68. <Êtegory = Transcription_category[Price == currentJob.Category].Percent;%>
  69. <%Currency_code = Country[Country == currentSP.Country1].Currency_code;%>
  70. <%hourly_wage1 = Country[Country == currentSP.Country1].hourly_wage1;%>
  71. <%wage = (currentJob.Time_allocated_to_Service_Partner_in_hour  *  hourly_wage1  *  Category);%>


  72. <!--Content-->

  73. <p><%=currentSP.Last_Name%></p>
  74. <h1><%=currentJob.job_title%></h1>
  75. <p>Type of job: <%=currentJob.Type_of_job%></p>
  76. <p>Language: <%=currentJob.Language_1%></p>
  77. <p>Deadline: <%=currentJob.Intern_deadline%></p>
  78. <p>Time allocated (in hours): <%=currentJob.Time_allocated_to_Service_Partner_in_hour%></p>
  79. <p>Wage: <%=wage%> <%=Currency_code%></p>
  80. <p>Payment category: <%=Category%>%</p>
  81. </p>