Dear fellows,
Below is a formula received by DonkeyOte here in the forum to calculate EOSB based on the following rules:
$5000 Monthly salary, start date 11 sep 1994, end date 30 Apr 2011. The first 5 years gets half of his salary for each year of the five, and one full salary for each year thereafter.
DonkeyOte's formula was as follows:
Monthly (67.5k)
Code:
=SUMPRODUCT((DATEDIF($A2,TODAY(),"y")>{0,5})+0,DATEDIF($A2,TODAY(),"y")-{0,5},$B2*{0.5,0.5})
or
=SUM(MIN(5,DATEDIF(A2,TODAY(),"y"))*B2/2,MAX(0,DATEDIF(A2,TODAY(),"y")-5)*B2)
</PRE>
where A2 holds start date and B2 monthly salary! The result is $67,500.00 in the both formulas!
However, our system calculates EOSB as equal to $70,680.48! Diff. is $3,180.48?
Which one to go with and any suggestion!
Thanks for any input!
Below is a formula received by DonkeyOte here in the forum to calculate EOSB based on the following rules:
$5000 Monthly salary, start date 11 sep 1994, end date 30 Apr 2011. The first 5 years gets half of his salary for each year of the five, and one full salary for each year thereafter.
DonkeyOte's formula was as follows:
Monthly (67.5k)
Code:
=SUMPRODUCT((DATEDIF($A2,TODAY(),"y")>{0,5})+0,DATEDIF($A2,TODAY(),"y")-{0,5},$B2*{0.5,0.5})
or
=SUM(MIN(5,DATEDIF(A2,TODAY(),"y"))*B2/2,MAX(0,DATEDIF(A2,TODAY(),"y")-5)*B2)
</PRE>
where A2 holds start date and B2 monthly salary! The result is $67,500.00 in the both formulas!
However, our system calculates EOSB as equal to $70,680.48! Diff. is $3,180.48?
Which one to go with and any suggestion!
Thanks for any input!
Last edited: