Integrate a phi function to calculate the MDRI or window period

integratePhi(phi.function, maxT)

Arguments

phi.function

A function of t (years) which has range 0 to at least maxT

maxT

The t to integrate to