I'm trying to figure out what the below script does. For some reason its not returning the results I expected. Can someone please explain it to me?

substr(@wksta, len(@wksta) -2, 3)