calculate pr