Update PairRate.cs

Updated error in the GetRate function