Making some calculations