Calculate Compose using recursive