How To Calculate Choose Function