query loan costs