Move day count code to Period and BudgetPeriod