The formula below is supposed to add the number of players plus the number of re-buys to come up with a point total. For some reason this formula is not picking up the re-buys and adding them to the points. Any suggestions

round(if(r==1, n+nr, if(r==2, .80*(n+nr), if(r==3, .70*(n+nr), if(r==4, .60*(n+nr), if(r==5, .50*(n+nr), if(r==6, .40*(n+nr), if(r==7, .30*(n+nr), if(r==8, .20*(n+nr), if(r>8, .05*(n+nr)))))))))))