nonlinear model script, donation period extraction