Blackjack example, how does it calculate the card?

Thanks that does make things a bit clearer.