Updated calculation formula