i can't figure out why 'a' - 'o' will produce 26.. where does that number come from?
The number is the difference between the unicode for 'a' and the unicode for 'G'. Note that you formula for the value is different than what you showed on the left of the equals.