solve a= p (1+rt) for t