Fix quarters

Should return now a number from 0 till 3.

The current behavior made the function return from 0 till 4
where january returned 0 and 4 for november and december.