cumulativeInfected function

Cumulative number of infected hosts at time t