title: How to add formula on Crystal report fields
body: <p>Below is my crystal report ,I want to perform Formula something like below ,as I am new to crystal report how can I do this ?</p>
  
  <pre><code>if (`Fee_unit`==Percent)
  {
  FeeTotal = (`Fee` divided by 100) * `Number of patients`;
  }
  else
  {
  FeeTotal = `Fee` *  `Number of patients`;
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/NiKBo.png" alt="Crystal report"></p>