Created an SIR function for when latent period is 0.