Correcting some calculations