Determining formula for quantum cortex calculations