Solve for t A=p(1+rt)