calculate letter selection