Base 36 formula