The number of pairs of years in office that can be read has been capped at two per president

This follows due to the 22nd Amendment. None of the presidents who served before that amendment was passed served more than two nonconsecutive terms, so the cap should not cause any problems regarding data for past presidents.