find_rate function

Find the rate for a loan given the discount factors