title: trying to make a budget calculator but I'm lost
body: <p>I have an assignment with the following request:</p>
  <p>The program asks the student the max budget they have for the month. Then the program asks the student for the expenses he/she had on the first day of the month (On the screen it would say: What were your expenses on day #1?) And so on and so forth it keeps asking for the expenses of each of the following days. The program stops when one of two conditions occurs: when the accumulated expenses of the days that have been entered exceed the budget limit, in that case the program displays a message indicating that the budget has been met; or, in the second case, when the 30th day is reached and the corresponding expense has been entered, in that case if there is money left over from the budget the program must tell you how much is left over.</p>
  <p>I'm trying to figure if using if function some cycles and an input option to save the money spent in a day in that variable and also assign the max budget to recall a stop when the code finds I'm over budget in one of the 30 inputs and show which day I went over budget</p>
  <p>this is what I currently have I want to know what I'm doing wrong and in what I can improvise</p>
  <pre><code>Max = 240
  
  print(
      &quot;Lets keep on track your expenses :)&quot; + &quot;\n&quot;
  )
  
  Spent = int(input(&quot;input todays expenses:&quot;))
  
  if(Spent &lt; Max):
      int(input(&quot;type the money you will spend the next days&quot;))
  elif(Spent&gt; Max):
      print(&quot;you went overbudget you can't spend more, sorry! :(&quot;)
  </code></pre>
  <p>Thanks!</p>