A Transient Coupled Wellbore-Reservoir Model Using a Dynamic IPR Function