expr calculation

edit calcQueueHead