title: MongoDb how to subtract 2 years and use the result to find that year(result) in Mongodb
body: <p>I am new at MongoDB, I have a database that contains information about Private and public companies. information such as founding year, number of employees, deadpoolyear, etc.  (sample attached as picture)</p>
  
  <p>I need to filter only companies that have been Deadpool after the third year, it means that they have been Deadpool 3 years after the founding year. </p>
  
  <p>i do have the Founding year, but the deadpool year shows which year it was deadpooled. I think the solution is to add 3 years to the founding year and filter everything to that new year in all the database, so i can get only companies that were deadpool the third year. </p>
  
  <p>i will really appreciate the help. </p>
  
  <pre><code>founded_year:2004
  founded_month:8
  founded_day:1
  deadpooled_year:2008
  deadpooled_month:3
  deadpooled_day:3
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/g76Ez.png" rel="nofollow noreferrer">enter image description here</a></p>