added calculation formula