Sorry its giving wrong answer , coz for 5 years the EOSB should be 50% of the last salary
Example for 10 years 8 months =(5*10000)*0.5 , + above 5.8*10000
the result should be like this =(5*10000)*0.5+ (5.8*10000) = ??
In this formula which you provide giving wrong answer