title: Multiplying a user's input depending on what he chooses
body: <p>I tried looking for some similar cases here but was unsuccessful. </p>
  
  <p>I want the user to first introduce an amount of money, then he would need to state a number of days: "30", "45" or "60", not other options rather than these, and finally, the program would multiply the amount of money per a fixed number. This number depends on the number of days the user has chosen. If he choses 30, "amount of money * 1.0219"; 45: "amount of money * 1.0336"; 60: "amount of money * 1.0467".</p>
  
  <p>So far, this is the  code I wrote:</p>
  
  <pre><code>puts "Indicate money to invest"
  money_invested = gets.to_i 
  
  puts "Indicate time of investment"
  time_investment = gets.to_i
  
  investment_calculation = { 30 =&gt; 1.0219, 45 =&gt; 1.0336, 60 =&gt; 1.0467 }
  # will be `nil` if not one of the defined ones
  </code></pre>
  
  <p>I understand that there is something horrible going on within the hash already, so I decided to stop there. I'm not sure if <code>=&gt;</code> means what I want it to mean, i.e.: multiply.</p>