The time of year you retire could impact your finances more than you might think.