Finishing the calculations