Exactly what interest rate does this function return? Is it compounded, simple, and what is the purpose of the "basis"?