You could try Poisson regression with (log of) number of days exposure a patient has, as an offset. See Offset in Poisson regression for details.
Let the respons variable be $y_i$ which is one if patient $i$ is affected, zero elsewhere. Let $E_i$ be the exposure of patient $i$, and let $z_i$ be a vector of other variables influencing effected status, if any. The Poisson regression postulated above is somewhat unnatural here since the response is zero/one and not a count variable. Binomial regression looks more natural, but the most used link function, the logistic, giving logistic regression, seems not. But you can try binomial regression with a log link function, for instance available in R.
The model becomes
$$
p_i=P(Y_i=1 | E_i,z_i) = \exp(\beta_0+\log E_i +\beta' z_i)
$$
and we can see that the estimated probability $\hat{p_i}$ is proportional to $E_i$, so proportional to exposure, as wanted. I have never used such a model myself, so do not know how well it works in practice (specifically, estimated probabilities larger than 1 is possible! but how often that arises in practice, I do not know). For more about this model see http://www.biostat.umn.edu/~will/6470stuff/Class24-12/Handout24.pdf
Some other very relevant posts: Poisson regression to estimate relative risk for binary outcomes How to calculate the "exact confidence interval" for relative risk?