function y = findtransfer(a, rhs, p) y = (1 + interest(a, p)).*a - rhs;