Thanks. I actually looked it up and found this description on Wikipedia which I assume is correct.
https://en.wikipedia.org/wiki/Rating_percentage_index
Basketball formula
The current and commonly used formula for determining the RPI of a college basketball team at any given time is as follows.
RPI = (WP * 0.25) + (OWP * 0.50) + (OOWP * 0.25)
where WP is Winning Percentage, OWP is Opponents' Winning Percentage and OOWP is Opponents' Opponents' Winning Percentage.
The WP is calculated by taking a team's wins divided by the number of games it has played (i.e. wins plus losses).
For Division 1 NCAA Men's basketball, the WP factor of the RPI was updated in 2004 to account for differences in home, away, and neutral games. A home win now counts as 0.6 win, while a road win counts as 1.4 wins. Inversely, a home loss equals 1.4 losses, while a road loss counts as 0.6 loss. A neutral game counts as 1 win or 1 loss. This change was based on statistical data that consistently showed home teams in Division I basketball winning about two-thirds of the time.[3] Note that this location adjustment applies only to the WP factor and not the OWP and OOWP factors. Only games against Division 1 teams are included for all RPI factors. As an example, if a team loses to Syracuse at home, beats them away, and then loses to Cincinnati away, their record would be 1–2. Considering the weighted aspect of the WP, their winning percentage is 1.4 / (1.4 + 1.4 + 0.6) = 0.4117
The OWP is calculated by taking the average of the WP's for each of the team's opponents with the requirement that all games against the team in question are removed from the calculation. Continuing from the example above, assume Syracuse has played one other game and lost, while Cincinnati has played two other teams and won. The team in question has played Syracuse twice and therefore Syracuse must be counted twice. Thus the OWP of the team is (0/1 + 0/1 + 2/2) / 3 (number of opponents – Syracuse, Syracuse, Cincinnati). OWP = 0.3333
The OOWP is calculated by taking the average of each Opponent's OWP. Note that the team in question is part of the team's OOWP. In fact, the most re-occurring opponent of your opponents is the team in question.
The RPI formula also has many flaws. Due to the heavy weighting of opponents winning percentage, beating a team with a bad RPI may actually hurt your RPI. In addition, losing to a good RPI team can help your RPI.