title: Is there a way I can calculate the months until user's birthday?
body: <p>I made a birthday program in Python, the program ask from the user the month he were born in, and then calculate the months until the user have birthday.</p>
  
  <p>For example, the user enter the number 5 and the current month is 2, the program output "You have 3 months until your birthday!".</p>
  
  <p>I don't know how to calculate the months until he have birthday correct.</p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>from datetime import datetime
  
  def Birthday():
      CurrentMonth = datetime.now().month
      BornIn = input("What month were you born in ? - ")
  
      result = int(BornIn) + CurrentMonth
      if int(BornIn) == CurrentMonth:
          print("You have already Birthday in this month!")
      elif int(BornIn) &gt; 12:
          print("Invalid Input!")
      else:
          print("You have", result , "monthes until your Birthday!")
  
  
  
  Birthday()
  </code></pre>
  
  <p>What mathematical action do I need to do, to calculate the months until his birthday?</p>
  
  <p>Look at line 7, I used <strong>+</strong> to calculate but obviously it won't work.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I need to do <code>result = CurrentMonth - int(BornIn)</code>. This should fix the problem.</p>