Spearman's rho formula

Rank Correlation node,

Spearman’s rho.

Can you please me know the formula used by knime to compute the spearnans rho?. I found that it does not tally with the value obtained from formula given in a statistics text book.