Solve for r a=p(1+rt)