Updated formula to be correct