title: Which way to return an int is more proper, i.e Is variable needed
body: <p>I'm still learning C#, having migrated over from VB.Net and I've always wondered, in certain cases, why do I need a variable.</p>
  
  <p>Given this snippet;</p>
  
  <pre><code>public int GetWaitTime(bool webProtocolError, int currentWait)
      {
         if (!webProtocolError)
          {
              if (currentWait &lt; 16000)
                  return currentWait + 250;
          }
  
          if (currentWait &lt; 10000)
          {
              return 10000;
          }
          if (currentWait &lt; 240000 &amp;&amp; currentWait &gt;=10000)
          {
              return currentWait*2;
          }
          return 240000;
      }
  </code></pre>
  
  <p>versus this snippet</p>
  
  <pre><code>public int GetWaitTime(bool webProtocolError, int currentWait)
      {
         var newWait = currentWait;
         if (!webProtocolError)
          {
              if (currentWait &lt; 16000)
                  newWait = currentWait + 250;
                  return newWait;
          }
          if (currentWait &lt; 10000)
          {
              newWait =10000;
              return newWait;
          }
          if (currentWait &lt; 240000 &amp;&amp; currentWait &gt;=10000)
          {
              newWait = currentWait*2;
              return newWait;
          }
          return 240000;
    }
  </code></pre>
  
  <p>Is there any real difference? Visual studio sees all as ints so I dont see any type issue. I'd love to hear feedback on which is the most proper way in C# from the experts.</p>