Some fixes for bug #8365.  It now calculates pay periods with the correct start date.