Just 10?

What happens if the president dies after being in office for say a month? Vice prez takes over I asume? The if the VP/prez runs in 3 3/4 years and wins and then runs and wins again 4 years later,would that not give him 11 years plus as prez or would this not be allowed? Just wondering what would happen in that scenario.