Under the 22nd amendment, an individual who fills an unexpired presidential term lasting greater than two years is also prohibited from winning election as president more than once
The term of office for both the vice president and the president is four years. ... Additionally, neither the Constitution’s eligibility provisions nor the Twenty-second Amendment’s presidential term limit explicitly disqualify a twice-elected president from serving as vice president.