Skip to Content
0
Former Member
Jan 12, 2012 at 12:47 AM

Year Counter in logic

25 Views

Need to do a calculation for 5 years for first month (January) of each year.

i.e. the calculation needs to happen for 2012.JAN,2013.JAN,2014.JAN,2015.JAN,2016.JAN

First year value will be selected at the time package is exectuted and the logic need to be run for first year and next 4 years.

How the syntex has to be written to increase the year value with in the same pacakge.

The formula for first year is

Account 1 = Account 2 *Account 3

However the formula for 2 to 5 years is

Account 2 = Account 3 * Account4