Calculate a % in a sub-form

I have a sub-form in my Zoho Account Module where i have to capture the payroll of a company every year. How do i do a calculation in the same sub-form the difference in % of the payrolls between the previous and current years?