Can you calculate the sales commission? [homework]
Imagine you run a cute little pastry in Rome (Italy). To boost the sales you have a 2 person sales team. Caterina & Antonio. Caterina is the manager & Antonio, her assistant.
Apart from basic salary, they will also receive sales commission. This comes from a portion of net profit allocated to “incentive pool”. The sales commission is decided as below:
 First €25,000 goes to Caterina
 Any amount between €25,000 and €60,000 is split in 70:30 in favor of Caterina
 Any amount beyond €60,000 is split 50:50 between Caterina & Antonio
Your job: Write a formula to calculate the sales commission:
Assuming,
 Cell A1 ( named incentive ) contains total amount in incentive pool
 Cell A2 ( named first.split ) contains €25,000
 Cell A3 ( named second.split ) contains €60,000
 Cell B2 ( named first.ratio ) contains 70%
 Cell B3 ( named second.ratio ) contains 50%
What formula gives Caterina’s commission?
And what formula gives Antonio’s commission?
Post your answers in comments section
Go ahead and share your answers.
PS: This homework problem inspired from a question in our forum posted by Robbie.
 

Leave a Reply
Open & Save files faster in Excel 2013 [quick tip]  Calculate Pi by throwing Frozen Hotdogs ! 
85 Responses to “Can you calculate the sales commission? [homework]”
=max(second.splitfirst.splitincentive,0)*(1first.ratio)+max(incentivesecond.split, 0)*(1second.ratio)
Vad's is certainly shorter that what I came up with, but I can't get it to work. Here's mine:
(some users may need to change semicolons to commas)
 juanito
=MIN(first.split;incentive)+first.ratio*MIN(second.splitfirst.split;incentivefirst.split)*(incentive>first.split)+second.ratio*(incentivesecond.split)*(incentive>second.split)
Here is the answer.
=IF(incentive>second.split,(incentivesecond.split)*(1second.ratio)+(second.splitfirst.split)*(1first.ratio),IF(incentive>first.split,(incentivefirst.split)*(1first.ratio),0))
The above formula is for Antonio. Below formula is for Caterina
=incentiveIF(incentive>second.split,(incentivesecond.split)*(1second.ratio)+(second.splitfirst.split)*(1first.ratio),IF(incentive>first.split,(incentivefirst.split)*(1first.ratio),0))
Antonio:
=IF(incentive>second.split,(incentivesecond.split)*second.ratio,)+IF(incentive>=first.split,(MIN(incentive,second.split)first.split)*(1first.ratio),)
Caterina:
=IF(incentivesecond.split,(incentivesecond.split)*second.ratio,)+IF(incentive>=first.split,(MIN(incentive,second.split)first.split)*first.ratio,)
Oops
For Caterina it should read
=if(incentive < = second.split.....
Caterina:
=IF(incentivesecond.split,first.split+((second.splitfirst.split)*first.ratio)+(incentivesecond.split)*second.ratio,first.split+(incentivefirst.split)*first.ratio))
Antonio:
=IF(incentivesecond.split,(second.splitfirst.split)*(1first.ratio)+(incentivesecond.split)*second.ratio,(incentivefirst.split)*(1first.ratio)))
I'm sure there's a better way than nested IFs but this works.
Ben.
VB solution with Caterina's commission in C7 and Antonio's in C9:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim cIn As Currency
Dim cIn1 As Currency
Dim cIn2 As Currency
Dim cIn3 As Currency
Dim cIn4 As Currency
cIn = Cells(1, 1).Value
If cIn 25000 And cIn 60000 Then
cIn1 = 35000 * 0.7
cIn2 = 35000 * 0.3
cIn3 = cIn  60000
cIn4 = cIn3 * 0.5
Cells(7, 3).Value = 25000 + cIn1 + cIn4
Cells(9, 3).Value = cIn2 + cIn4
End If
End Sub
Caterina:
=MIN(incentive,first.split) + MAX(MIN(incentive,second.split)first.split,0)*first.ratio + MAX(incentivesecond.split,0)*second.ratio
Antonio:
=MAX(MIN(incentive,second.split)first.split,0)*(100%first.ratio) + MAX(incentivesecond.split,0)*(100%second.ratio)
This is exactly how I did it as well.
My formula for Caterina's was the same.
For Antonio, I had: =incentive  caterina
Where caterina was the cell containing the Caterina formula.
Hi Chandoo.
=MIN(incentive,first.split)+first.ratio*MIN(MAX(0,incentivefirst.split),second.splitfirst.split)+second.ratio*(MAX(0,incentivesecond.split))
Regards
Caterina:
=IF(Incentive>Second.Split,first.split+((Incentivefirst.split)*Second.ratio),IF(Incentive>first.split,first.split+((Incentivefirst.split)*First.ratio),Incentive))
Antonio:
=IF(Incentive>Second.Split,((Incentivefirst.split)*Second.ratio),IF(Incentive>first.split,((Incentivefirst.split)*(1First.ratio)),""))
=IF(incentive<=first.split,incentive,IF(incentivesecond.split,((incentivesecond.split)*second.ratio)+((second.splitfirst.split)*first.ratio)+first.split,"F")))
So for 25000 she would get 25000
for 60000 she would get 49500
for 85000 she would get 62000
i added figures just to see if i understood the question right lol ... so if anyone matches these ill be happy
=IF(incentive<=first.split,incentive,IF(incentivesecond.split,((incentivesecond.split)*second.ratio)+((second.splitfirst.split)*first.ratio)+first.split,"F")))
looked at my formula in post and it didnt paste properly (missing pieces ???) so will try posting it again
ok its still not pasting in the formula properly so probably best not to allow this post through as it would confuse others if they try it out
For the Boss (Named incentive.manager )
=MIN(first.split,incentive)
+first.ratio*IF(incentive<first.split,0,MIN(incentivefirst.split,first.split))
+second.ratio*IF(incentive<second.split,0,incentivesecond.split)
Now, the underling's is easy
= incentive  incentive.manager
Caterina: =MIN(incentive,first.split)+(first.ratio*MIN(MAX(incentivefirst.split,0),second.splitfirst.split))+(second.ratio*MAX(incentivesecond.split,0))
Antonio: =((1first.ratio)*MIN(MAX(incentivefirst.split,0),second.splitfirst.split))+((1second.ratio)*MAX(incentivesecond.split,0))
I couldn't make it shorter...
=MIN(incentive,first.split)+first.ratio*MIN(MAX(0,incentivefirst.split),second.splitfirst.split)+second.ratio*MAX(0,incentivesecond.split)
Here is an option without using IF. I wrote this before seeing Bigger Don's answer, but mine is very similar. I agree with Bigger Don's answer for the underling being the easiest, but I wasn't sure if that was the homework:
Caterina: =MIN(incentve,first.split)+(MAX(first.split,(MIN(incentve,second.split)))first.split)*first.ratio+(MAX(incentve,second.split)second.split)*second.ratio
Antonio: =(MAX(first.split,(MIN(incentve,second.split)))first.split)*(1first.ratio)+(MAX(incentve,second.split)second.split)*(1second.ratio)
I know some people hate VLOOKUP, but is nice to resolve this...
Caterina:
=if.error(VLOOKUP(incentive;$A$2:$B$3;2;TRUE)*incentive;incentive)
for Antonio
=if.error((1VLOOKUP(incentive;$A$2:$B$3;2;TRUE))*incentive;0)
For Manager
=IF(Incentivefirst.spilt,Incentivesecond.spilt,first.spilt+(second.spiltfirst.spilt)*first.ratio+(Incentivesecond.spilt)*second.ratio)))
For Assistant
=IF(Incentivefirst.spilt,Incentivesecond.spilt,(second.spiltfirst.spilt)*(1first.ratio)+(Incentivesecond.spilt)*(1second.ratio))))
Mine is slightly different, but same results
=MIN(incentive,first.split)
+(MIN(MAX(0,incentivefirst.split),second.splitfirst.split)*first.ratio)
+(MAX(incentivesecond.split,0)*second.ratio)
Second formula is simply =incentivecaterina
Hi Chandoo,
If you can post the exact output for some given data, that will resolve the case...
Regards,
Faseeh
For 26000, The commision should be 1000*0.3 =300 ...
=IF(incentive>=25000,incentive25000,incentive)*LOOKUP(incentive,{0,25000,60000},B1:B3)
Sorry, 1000 * 0.7 = 700, but formula still works... for first question
There goes another one:
I think than we can simplify this a bit more, but this is around MEDIAN.
for Caterina.
=IF(incentive<first.split;incentive;if(incentive=MEDIAN(A1:A3);first.ratio*incentive;second.ratio*incentive))
for Antonio
=IF(incentive<first.split;0;IF(incentive=MEDIAN(A1:A3);(1first.ratio)*incentive;(1second.ratio)*incentive))
NOTE:
In this solution if the incentive is 60000, then still splits 7030.
=MIN(first.split,Incentive)+first.ratio*MAX(MIN(Incentivefirst.split,second.splitfirst.split),0)+second.ratio*MAX(Incentivesecond.split,0)
=IF(AND((Incentive>first.split),(Incentivesecond.split,Incentive*second.ratio))
For Antonio=SUMPRODUCT((Incentive>first.split), MIN(Incentivefirst.split, second.splitfirst.split), 1first.ratio)+SUMPRODUCT((Incentive>second.split), Incentive60000, 1second.ratio)
For Caterina = IncentiveAntonio.commission
for Caterina
=MIN(incentive,first.split) + (incentive>=first.split)*((incentivefirst.split)*first.ratio)  MAX(incentivesecond.split, 0)*(first.ratiosecond.ratio)
for Antonio
=incentivecaterina
Caterina
=MIN(first.split,incentive)+first.ratio*MIN(incentivefirst.split,second.splitfirst.split)+second.ratio*MAX(0,incentivesecond.split)
Antonio
=(1first.ratio)*MIN(incentivefirst.split,second.splitfirst.split)+(1second.ratio)*MAX(0,incentivesecond.split)
Hi,
I prefer to set my variables outside the worksheet just to have them in one place, like this:
With
C.Rates ={1,0.7,0.5}
A.Rates = 1C.Rates
C.Levels ={0,7.5,12}
A.Levels =C.Levels
End
Commission(C) =SUM(((IncentiveC.Levels)>0)*C.Levels)+Incentive*INDEX(C.Rates;SUM(N((IncentiveC.Levels)>0))) +CSE
Commission(A) =SUM(((IncentiveA.Levels)>0)*A.Levels)+Incentive*INDEX(A.Rates;SUM(N((IncentiveA.Levels)>0))) +CSE
The commission formula is symmetrical.
Caterina=MIN(incentive,first.split)+first.ratio*MAX(0,MIN(incentive,second.split)first.split)+second.ratio*MAX(0,incentivesecond.split)
Antonio= incentive  Caterina
Here is a pic Micky Avidan shared about this problem.
Hi, Chandoo, and all,
1) Thanks for posting in my behalf.
2) To my opinion  the huge advantage in my approach is the flexibility.
The formula stays "simple" also in cases of a large amount of splits.
I mainly, use such a formula for IRS progressive calculations.
PS: Wouldn't it be a great benefit, for this site, if we could present a picture, by ourselves, without bothering you ?
Michael (Micky) Avidan
“Microsoft® Answers"  Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (20092015)
ISRAEL
You are welcome Michael. I would love to allow users to post pictures. I just don't know how to with our WordPress native comments. It doesn't allow such thing. I suggest upload the pictures to a free hosting site like flickr and pasting the link here in comments.
NP.
Testing...
Michael (Micky) Avidan
“Microsoft® Answers” – Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (20092015)
ISRAEL
Edit by Hui...
I wrapped your URL in an [Img SRC=" URL"/] wrapper
But use <> brackets instead
Refer: http://chandoo.org/wp/2011/11/04/fancypostsusinghtmldisplaycodes/
TEST #2:
TEST #3:
Here is a similar approach, which seems easier to understand.
Data Setup:

A B
1 75000
2 0 100%
3 25000 70%
4 60000 50%

where CELL A1 contains total incentive amount
Formula:
=SUMPRODUCT((A1>A2:A4), A1A2:A4, B2:B4B1:B3)
I do it with a little tweak...
A6 = Incentive Pool
A1 = 0
A2 = 25001
A3 = 60001
B1 = 100%
For Caterina:
=SUM(LOOKUP(ROW(INDIRECT(("1:"&A6))),A1:B3))
Control Shift Enter
For Antonia
=Incentive Pool  Incentive for Caterina
Limitations:
Incentive must be a whole number and <= 1048576
Caterina’s commission=IF(A125000,A160000,(25000+(6000025000)*0.7+(A160000)*0.5))))
Caterina's Com."=IF(A125000,A160000,(25000+(6000025000)*0.7+(A160000)*0.5))))"
Caterina's Com."=IF(A125000,A160000,(25000+(6000025000)*0.7+(A160000)*0.5))))"
Sorry Chandoo!! Trying to paste the formula but showing after submitting the comment it is not showing correctly.....
...and this is a good reason for allowing to embed(!) a picture into the post.
Michael (Micky) Avidan
@Micky
Also have a read of:
http://chandoo.org/wp/2011/11/04/fancypostsusinghtmldisplaycodes/
Caterina's commission:
=IF(incentive=60000,first_split+first_ratio*(second_splitfirst_split)+second_ratio*(incentivesecond_split),first_split+first_ratio*(incentivefirst_split)))
Antonio's commission:
=incentiveIF(incentive=60000,first_split+first_ratio*(second_splitfirst_split)+second_ratio*(incentivesecond_split),first_split+first_ratio*(incentivefirst_split)))
Mine's not elegant.
For Caterina: IF(incentivefirst.split,incentivesecond.split,first.split+second.ratio*(incentivefirst.split))))
For Antonio: Incentive  Caterina 🙂
Mine's not elegant.
IF(incentivefirst.split,incentivesecond.split,first.split+second.ratio*(incentivefirst.split))))
For Antonio: Incentive – Caterina 🙂
caterina: =CHOOSE(RANK(incentive,$A$1:$C$1),
((incentivesecond.split)*second.ratio)+((second.splitfirst.split)*first.ratio)+first.split,
((incentivefirst.split)*first.ratio)+first.split,
incentive)
antonio: =CHOOSE(RANK(incentive,$A$1:$C$1),
((incentivesecond.split)*second.ratio)+((second.splitfirst.split)*first.ratio)+first.split,
((incentivefirst.split)*first.ratio)+first.split,
incentive)
Cool solution using RANK, new to me.
Does not work for me. Chandoo defined incentive and splits as A1:A3.
I believe that you put incentive and splits in row A.
I Replaced ...RANK(incentive,$A$1:$C$1)...
with ...RANK(incentive,$A$1:$A$3)...
and it works perfectly.
Mine is totally long winded lol!!!
Caterina = =IF(incentive>=first.split,first.split+IF(AND(incentive>first.split,incentivesecond.split,incentive>first.split),(second.splitfirst.split)*first.ratio,0)+IF(incentive>second.split,(incentivesecond.split)*second.ratio,0)),incentive)
Antonio = =IF(incentivefirst.split,incentivesecond.split,incentive>first.split),(second.splitfirst.split)*(1first.ratio),0)+IF(incentive>second.split,(incentivesecond.split)*second.ratio,0)))
Caterina.Commission cell calculated as follows:
=IF(Incentive<First.Split,Incentive,IF(Incentive<Second.Split,First.Split+(IncentiveFirst.Split)*First.Ratio,First.Split+(Second.SplitFirst.Split)*First.Ratio+(IncentiveSecond.Split)*Second.Ratio))
Antonio.Commission easy as : =IncentiveCaterina.Commission
(but note that this means there is no crosscheck)
Caterina's Commission
=IF(Incentive<Second.split,(IncentiveFirst.split)*First.ratio+First.split,(IncentiveSecond.split)*Second.ratio+(Second.splitFirst.split)*First.ratio+First.split)
Antonio's commisson
=IF(Incentive<Second.split,((IncentiveFirst.split)*(1First.ratio)),(IncentiveSecond.split)*Second.ratio+(Second.splitFirst.split)*(1First.ratio))
For Caterina:
=IF(incentive<first.split,incentive,IF(incentive<second.split,first.split+(incentivefirst.split)*first.ratio,first.split+(second.splitfirst.split)*first.ratio+(incentivesecond.split)*second.ratio))
For Antonio:
=IF(incentive<first.split,0,IF(incentive<second.split,(incentivefirst.split)*(1first.ratio),(second.splitfirst.split)*(1first.ratio)+(incentivesecond.split)*(1second.ratio)))
Caterina's commission =
IF(incentive>second.split,(incentivesecond.split)*0.5+49500,IF(incentive>first.split,(incentivefirst.split)*0.7+first.split,incentive))
Antonio's commission:
=incentiveCaterina’s commission
An old trick using differential rates
Brackets = {0,25000,60000}
For Caterina:
Ratios = {100%,70%,50%}
Dif_ratios_Cat = {100%,30%,20%}
Caterina =SUMPRODUCT((Incentive>Brackets),IncentiveBrackets,Dif_ratios_Cat)
For Caterina:
Ratios = {0%,30%,20%}
Dif_ratios_Ant = {0%,30%,20%}
Antonio =SUMPRODUCT((Incentive>Brackets),IncentiveBrackets,Dif_ratios_Ant)
My mistake:
For Antonio:
Ratios = {0%,30%,20%}
Dif_ratios_Ant = {0%,30%,20%}
Antonio =SUMPRODUCT(–(Incentive>Brackets),IncentiveBrackets,Dif_ratios_Ant)
Another one, in both formulas use "" not ""
Caterina =SUMPRODUCT((Incentive>Brackets),IncentiveBrackets,Dif_ratios_Cat
Antonio =SUMPRODUCT((Incentive>Brackets),IncentiveBrackets,Dif_ratios_Ant)
Assuming that incentive is 100000, first 25 k goes to the Caterina .Next 35 K is shared in the ratio of 7:3 and finally remaining about in the ratio of 50:50. My Formula to Calculate;
Caterina's Share : =25000+(0.7*35000)+((Incentivesecond.split)*0.5)
Antonio's Share : =Incentive Caterina's Share
Regards
Rudra
Bit of Correction
Assuming that incentive is 100000, first 25 k goes to the Caterina .Next 35 K is shared in the ratio of 7:3 and finally remaining about in the ratio of 50:50. My Formula to Calculate;
Caterina’s Share : ==first.split+(0.7*(second.splitfirst.split))+((Incentivesecond.split)*0.5)
Antonio’s Share : =Incentive Caterina’s Share
Regards
Rudra
Here is my solution:
Caterina:
=MIN(A2;B2)+MIN(MAX(A2B2;0);C2B2)*D2+MAX(A2C2;0)*E2
Antonio:
=MIN(MAX(A2B2;0);C2B2)*(1D2)+MAX(A2C2;0)*(1E2)
When..
A2 = Incentive
B2 = First.Split
C2 = Second.Split
D2 = First.Ratio
E2 = Second.Ratio
Formula in C6
Antonio =IF(A1>=A3,IF(A1>A2,(A3A2)*(1A4))+IF(A1>=A3,(A1A3)*A5),IF(AND(A1>=A2,A1<=A3),(A1A2)*(1A4),0))
Caterina =A1C6
Caterina's
=MIN(A1;A2)+MIN(A1MIN(A1;A2);A3A2)*A4+MAX(A1A3;0)*A5
Here is my aproach:
For Catherina:
=MIN(A1:A2)+A4*(MEDIAN(A1:A3)A2)+A5*MAX(0,A1A3)
For Antonio:
=(1A4)*(MEDIAN(A1:A3)A2)+(1A5)*MAX(0,A1A3)
Blessings!
Yet another formula, with Frequency
Need to have cell B1 filled with 100%
For Caterina:
=SUMPRODUCT(SMALL(A1:A3,ROW(A1:A3))*(B1:B3OFFSET(B1:B3,1,)*(ROW(A1:A3)<INDEX(FREQUENCY(A1:A3,A1),1)))*(ROW(A1:A3)<=INDEX(FREQUENCY(A1:A3,A1),1)))
Antonio = A1 Caterina
Hi Chandoo,
i've used this plugin in the past, which works with the native wordpress comments system and allows commenters to upload images as part of their comment.
https://wordpress.org/plugins/commentimages/
Caterina = IF(incentive<first.split,incentive,first.split+MIN(incentivefirst.split,second.splitfirst.split)*first.ratio+(incentivefirst.splitMIN(incentivefirst.split,second.splitfirst.split))*second.ratio)
Antonio = IF(incentive<first.split,0,incentiveCaterina)
Hi Chandoo and friends of chandoo.org,
I'm from germany and here are my versions of the formulas. I wrote it firstly in the german excel language. So I hope it's right in english.
Sorry, that are long formulas, but I like it.
Caterina:
=first.split+If((incentivefirst.split)>60,(second.splitfirst.split)*first.ratio,"")+(incentivefirst.splitIf((incentivefirst.split)>60,(second.splitfirst.split)*first.ratio,"")If((incentivefirst.split)>60,(second.splitfirst.split)*(1first.ratio),""))*second.ratio
Antonio:
=incentiveCateriana's commission or
=If((incentivefirst.split)>60,(second.splitfirst.split)*(1first.ratio),"")+(incentivefirst.splitIf((incentivefirst.split)>60,(second.splitfirst.split)*first.ratio,"")If((incentivefirst.split)>60,(second.splitfirst.split)*(1first.ratio),""))*second.ratio
Thank you and Byebye!
Gerhard
For Antonio commission:
IF(incentive>second.split;(incentivesecond.split)*second.ratio+35.000*30%;IF(incentive>first.split;(incentivefirst.split)*30%;0))
For Caterina commission:
incentiveAntonio commission
If the incentive pool is $100,000, is Caterina's commission $69,500 and Antonio's $30,500? Those are the answers my equations listed below spit out.
Caterina's commission
=A2+(B2*(A3A2))+IF(A1>A3,((A1A3)*0.5), (0))
Antonio's commission
=0.3*(A3A2)+IF(A1>A3, ((A1A3)*0.5), (0))
Not sure how to name cells yet so I just used the standard reference. Think these equations are right but I welcome anyone who may be willing to advise. Thanks!
Catarina in cell B5
=IF(A1<A2,A1,IF(A1<A3,A2+(A1A2)*B2,A2+B2*(A3A2)+(A1A3)*B3))
Antonia in cell B6
A1B5
I will Calculate Antonio's commision and then remaining amount will be Catarina's commission
Antonio's commision without use of If formula's is
=MAX(MIN(second.splitfirst.split,incentivefirst.split),0)*(1first.ratio)+MAX(incentivesecond.split,0)*second.ratio
Catarina's Commission is = incentive  Antonio's commision
€ 25,001.00
€ 25,000 70%
€ 60,000 50%
Caterina
Cathrine =IF(incentive=first.split,incentivesecond.split,(((incentivefirst.split)*second.ratio)+first.split),0)))
Antonio
=IF(AND(incentive>=first.split,incentivesecond.split,(incentivefirst.split)*(1second.ratio),0))
=IF(A1A2,A1<A3),A2+(A1A2)*A4,A2+(A3A2)*A4+(A1A3)*A5))
The above formula is for Catarina's commission
Cathrine:
=IF(incentive=first.split,incentivesecond.split,(((incentivefirst.split)*second.ratio)+first.split),0)))
Antonio:
=IF(AND(incentive>=first.split,incentivesecond.split,(incentivefirst.split)*(1second.ratio),0))
Ignore first not displayed properly.
By my calcs, If the Incentive pool was €70000
Catarina should receive €54500, Antonio should receive €15500
Catarina's formula is
=IF(Incentive>second.split,
first.split+(((Incentivefirst.split)(Incentivesecond.split))*first.ratio)+((Incentivesecond.split)*second.ratio),
IF(Incentive>first.split,first.split+(((Incentivefirst.split))*first.ratio),
Incentive))
Antonio's formula is
=IF(Incentive>second.split,
((Incentivefirst.split)(Incentivesecond.split))*(1first.ratio)+((Incentivesecond.split)*second.ratio),
IF(Incentive>first.split, ((Incentivefirst.split))*(1first.ratio),
0))
=MAX((commissionsecond.amount)*second.split,0)+MAX((MIN(commission,second.amount)first.amount)*(1first.split),0)
Here my answers:
for Catherine:
=IF(Incentive>85000,(Incentive85000)*Second.Ratio+67000,IF(Incentive>25000,(Incentive25000)*First.Ratio+25000,Incentive))
For Antonio:
=IF(Incentive>85000,(Incentive85000)*Second.Ratio+18000,IF(Incentive>25000,(Incentive25000)*(100%First.Ratio)+25000,Incentive))
sorry I forget to change the formula for Antonio
here you are again:
=IF(Incentive>85000,(Incentive85000)*Second.Ratio+18000,IF(Incentive>25000,(Incentive25000)*(100%First.Ratio),0))