Fix rps calculator