Edit logic for 1st and 15th installment. Add function to get intervals.