The solution has two parts first part gives me the answer while second part gives wrong answer. i am new i am not sure how exactly this works. if you could give some advise?
I think i found the solution. Hope it is useful to everyone. I have created a parameter for year which you can swap for months or years based on adding a calender to solution.
Here is the link.