Fixed last week of quarter divide-by-zero bug