Time-dependent infection model