Fix calculation of months between two given dates

Right now, starting from 01/2013 and ending at 12/2013, the calendar would display 24 months. I modified the calculation to deliver the correct number.