added RPI calculation
Merge pull request #1 from ftzeng/master

added RPI calculation