Finished all the calculations of the tabs