discrepancy in Schweser & CFAI. which is correct regarding PBO calculation (compensation growth problem)

here is the reference. Schweser Page 162. PBO problem calculation. The employee is going to be employed for 25 more years, so to calculate final years salary,he will see 24 raises. (this made sense, if i draw the timeline) CFAI Page 94: PBO problem Service year to date:10, Years until retirement: 30 to calculate final years salary, they compound the current salary 30 times and NOT 29 times. ??? which is correct ?