Dear All,
Please i need following expression in correct format i manage to come near by the correct result but unable to succeed.
Here is Access 2010 Expression.
IIf([Total_Days]<=1826,[Total_Days]*15/365,IIf([Total_Days]>1826,[Total_Days]*30/365,"Invalid Input"))
I am trying to calculate benefit days for employee the method is if total days is lesser than 1826 days than it should calculate 15 days per 365 days. and second expression is if total days is greater than 1826 days than first he has to calculate 15 days till 1826 days and after 30 days per 365 days whatever days is exceeding from 1826 Days at the end total should be added as per 15 Days & 30 Days calculation.
for example
Total Days is 3,652 Days
1. it should be 1826x15 Days per 365 is = 75
2. afterwords what ever is more than 1826-3652 is 1826 x 30 Days per 365 = 150 Days
So total should show me 225 Days for per 3,652 Days
If the total is less than 1826 days than it should show the total days X 15 / 365.
Thanks & regards,
MBA
Please i need following expression in correct format i manage to come near by the correct result but unable to succeed.
Here is Access 2010 Expression.
IIf([Total_Days]<=1826,[Total_Days]*15/365,IIf([Total_Days]>1826,[Total_Days]*30/365,"Invalid Input"))
I am trying to calculate benefit days for employee the method is if total days is lesser than 1826 days than it should calculate 15 days per 365 days. and second expression is if total days is greater than 1826 days than first he has to calculate 15 days till 1826 days and after 30 days per 365 days whatever days is exceeding from 1826 Days at the end total should be added as per 15 Days & 30 Days calculation.
for example
Total Days is 3,652 Days
1. it should be 1826x15 Days per 365 is = 75
2. afterwords what ever is more than 1826-3652 is 1826 x 30 Days per 365 = 150 Days
So total should show me 225 Days for per 3,652 Days
If the total is less than 1826 days than it should show the total days X 15 / 365.
Thanks & regards,
MBA