Add conditional start dates for 1st and 15th. Add some logic for same installment. Add error if periods >= 0. Revert functions back to 7.x-4.2.2 code.