We could put this into a function as we're doing the same thing here and in `calc_new_infections_incidmod_transmrate`. _Originally posted by @r-ash in https://github.com/hivtools/leapfrog/pull/350#discussion_r3443491514_
We could put this into a function as we're doing the same thing here and in
calc_new_infections_incidmod_transmrate.Originally posted by @r-ash in #350 (comment)