You are using three different methods.

How would sa formula know which of the three methods to use?