Use Line Item subsets to create different numeric formulae for each version to avoid multiple Ifs
Best Practice article:
Line Item Subsets Demystified
Decreasing the Length of Your Formulas
Variance Analysis With Native Versions Made Easy
Questions on this topic? See 1.07-02 Line Item subsets for Version Formula in our Planual forum.