Finished view calculation functions