For purposes of this paragraph, if all persons who are treated as a single employer for purposes of this section do not have the same taxable year, the taxable years taken into account shall be determined under principles similar to the principles of section
1561.