Text this: Solving age-dependent infectious diseases and tumor growth models using the contraction approach