Don't think about consecutive rows, as there are many months missing (so maybe months in consecutive rows are not consecutive).
Instead, think about joining the table you created to itself, in a way that you'll get a row in the joined table for each couple of consecutive months.
(That's, of course, only one of many possible solutions)