Full calculation