Modified document to include var months, which depics the amount of months that are going to be calculated.