Total pp is calculated by using the top 250 unique quotes on a user profile using this formula:
pp_value is the actual pp_value of the given quote
index is the ranking the pp_value got after sorting from high to low (index starts at 0 and goes up to 249)
example: