title: Week of the month
body: <p>I am trying to get the week number of the month and this is what I am trying to do:</p>
  
  <pre><code>x=`date +"%V"`
  echo "x is $x"
  y=`date +"%V" -d $(date +"%Y%m01")`
  echo "y is $y"
  week_of_month=$((x-y))
  echo "week_of_month is $week_of_month"
  </code></pre>
  
  <p>and this is what I get:</p>
  
  <pre><code>x is 38
  y is 38
  week_of_month is 0
  </code></pre>
  
  <p>But if my statment is working correctly the value of y should be 35 or so. What am I doing wrong?</p>