How to calculate the YoY growth in line item


I have Year wise numbers in my line item in a module, now i want to calculate the Year by year growth in between years.

I want to calculate FY21 YoY = FY21 Productivity growth / Fy20 Productivity Growth.


FY21 YoY= 2.55%


Please suggest me how get the result.