Original: Macdonald's tenure in office spanned 18 years, making him the second longest serving Prime Minister of Canada.
Simplified: Macdonald's time in office spanned 19 years. So he was the second longest serving Prime Minister of Canada.