extracted a view calculation