getting dates and vars correctly for quarter method