Fixed a date issue for bug #8365.  It was not calculating the days of the payperiods correctly.