Text this: Calculation of $R_0$ for age-of-infection models