title: VB.NET Console application - Trouble using Math.Log()
body: <p>I am more or less new to VB.NET and I am trying to program a simple console application for a basic finance and savings calculation program.</p>
  
  <p>I am having trouble with the Math.Log() function and I hope someone can help me to point out my 
  mistake/mistakes.</p>
  
  <p>This is the values I need to get working (the brackets shows the values ​​that actually should work but do not in my code):</p>
  
  <pre><code>Public Class basicSavingsPlaner                    
      Private userTotalCost As Double                     (50,000.00)
      Private userSaves As Double                         (3,451.47)
      Private userAnnualRate As Decimal                   (0,08)
      Private userMonths As Double                        (should be 10)
  </code></pre>
  
  <p>If I use my regular calculator (TI-82) I get the correct answer of userMonths which is <strong>10</strong>, this is how I type it on my calculator (I switched the values from digits to the names of my Declarations):</p>
  
  <pre><code>(log(((userAnnualRate * userTotalCost)/userSaves)+1)/(log(1+userAnnual)) = 10.0029...
  </code></pre>
  
  <p>This is my attempt to recreate it for my VB.NET console application:</p>
  
  <pre><code>userMonths = ((Math.Log((userAnnualRate * userTotalCost) / userSaves) + 1) / (Math.Log(1 + userAnnualRate)))
  </code></pre>
  
  <p>In this case, userMonths's result is <strong>14.9</strong>, which is wrong.</p>
  
  <p>I would really appreciate if someone could help me, I have search here in this forum and on Google for days now. </p>
  
  <p>// Televeinken</p>