Edited method "calc"