Added the calculations for the function