Fix incorrect calculation